Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

oSIP list Handling


Classes

struct  osip_list
struct  osip_list

Typedefs

typedef osip_list osip_list_t

Functions

int osip_list_init (osip_list_t *li)
void osip_list_special_free (osip_list_t *li, void *(*free_func)(void *))
void osip_list_ofchar_free (osip_list_t *li)
int osip_list_size (const osip_list_t *li)
int osip_list_eol (const osip_list_t *li, int pos)
int osip_list_add (osip_list_t *li, void *element, int pos)
void * osip_list_get (const osip_list_t *li, int pos)
int osip_list_remove (osip_list_t *li, int pos)

Typedef Documentation

osip_list_t
 

Structure for referencing a list of elements.


Function Documentation

int osip_list_add osip_list_t li,
void *  element,
int  pos
 

Add an element in a list.

Parameters:
li The element to work on.
element The pointer on the element to add.
pos the index of the element to add. (or -1 to append the element at the end)

int osip_list_eol const osip_list_t li,
int  pos
 

Check if the end of list is detected .

Parameters:
li The element to work on.
pos The index of the possible element.

void* osip_list_get const osip_list_t li,
int  pos
 

Get an element from a list.

Parameters:
li The element to work on.
pos the index of the element to get.

int osip_list_init osip_list_t li  ) 
 

Initialise a osip_list_t element. NOTE: this element MUST be previously allocated.

Parameters:
li The element to initialise.

void osip_list_ofchar_free osip_list_t li  ) 
 

Free a list of element where elements are pointer to 'char'.

Parameters:
li The element to work on.

int osip_list_remove osip_list_t li,
int  pos
 

Remove an element from a list.

Parameters:
li The element to work on.
pos the index of the element to remove.

int osip_list_size const osip_list_t li  ) 
 

Get the size of a list of element.

Parameters:
li The element to work on.

void osip_list_special_free osip_list_t li,
void *(*)(void *)  free_func
 

Free a list of element. Each element will be free with the method given as the second parameter.

Parameters:
li The element to work on.
free_func The method that is able to release one element of the list.


Generated on Tue Feb 22 00:59:48 2005 for libosip by  doxygen 1.4.1