Atrinik Server 2.5
Functions
server/links.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

objectlinkget_objectlink ()
void free_objectlink (objectlink *ol)
static void free_objectlink_recursive (objectlink *ol)
void free_objectlinkpt (objectlink *obp)
objectlinkobjectlink_link (objectlink **startptr, objectlink **endptr, objectlink *afterptr, objectlink *beforeptr, objectlink *objptr)
objectlinkobjectlink_unlink (objectlink **startptr, objectlink **endptr, objectlink *objptr)

Detailed Description

Object link related functions.

Definition in file links.c.


Function Documentation

void free_objectlink ( objectlink ol)

Free an object link.

Parameters:
olObject link to free.

Definition at line 46 of file links.c.

static void free_objectlink_recursive ( objectlink ol) [static]

Recursively free all objectlinks.

Parameters:
olThe objectlink.

Definition at line 59 of file links.c.

void free_objectlinkpt ( objectlink obp)

Recursively free all linked lists of objectlink pointers

Warning:
Only call for lists with FLAG_IS_LINKED - friendly lists and some others handle their own objectlink malloc/free.
Parameters:
obpThe oblinkpt

Definition at line 79 of file links.c.

objectlink* get_objectlink ( )

Allocate a new objectlink structure and initialize it.

Returns:
Pointer to the new objectlink

Definition at line 35 of file links.c.

objectlink* objectlink_link ( objectlink **  startptr,
objectlink **  endptr,
objectlink afterptr,
objectlink beforeptr,
objectlink objptr 
)

Generic link function for object links.

Definition at line 96 of file links.c.

objectlink* objectlink_unlink ( objectlink **  startptr,
objectlink **  endptr,
objectlink objptr 
)

Unlink object link from a list.

Definition at line 157 of file links.c.