154 #define osip_list_iterator_has_elem( it ) ( 0 != (it).actual && (it).pos < (it).li->nb_elt )
Structure for referencing a list of elements.
__node_t * node
Next node containing element.
Structure for referencing a node in a osip_list_t element.
int nb_elt
Number of element in the list.
void * osip_list_get(const osip_list_t *li, int pos)
Get an element from a list.
void osip_list_special_free(osip_list_t *li, void(*free_func)(void *))
Free a list of element.
int osip_list_clone(const osip_list_t *src, osip_list_t *dst, int(*clone_func)(void *, void **))
Clone a list of element.
void * osip_list_get_first(const osip_list_t *li, osip_list_iterator_t *it)
Get first iterator from list.
int osip_list_remove(osip_list_t *li, int pos)
Remove an element from a list.
int osip_list_size(const osip_list_t *li)
Get the size of a list of element.
int osip_list_eol(const osip_list_t *li, int pos)
Check if the end of list is detected .
__node_t * next
next __node_t containing element
void * element
element in Current node
void osip_list_ofchar_free(osip_list_t *li)
Free a list of element where elements are pointer to 'char'.
void * osip_list_get_next(osip_list_iterator_t *it)
GEt next iterator.
int osip_list_init(osip_list_t *li)
Initialise a osip_list_t element.
int osip_list_add(osip_list_t *li, void *element, int pos)
Add an element in a list.
void * osip_list_iterator_remove(osip_list_iterator_t *it)
Remove current iterator.