ZenWINX Logo ZenWINX

Architecture - Reference Manual - Guides

Lists

Functions

list_entry *__stdcall winx_list_insert_item (list_entry **phead, list_entry *prev, long size)
 Inserts an item to double linked list.
void __stdcall winx_list_remove_item (list_entry **phead, list_entry *item)
 Removes an item from double linked list.
void __stdcall winx_list_destroy (list_entry **phead)
 Destroys a double linked list.

Function Documentation

list_entry* __stdcall winx_list_insert_item ( list_entry **  phead,
list_entry *  prev,
long  size 
)

Inserts an item to double linked list.

Allocates memory for an item to be inserted.

Parameters:
[in,out] phead pointer to a variable pointing to the list head.
[in] prev pointer to an item which must preceed to the new item. If this parameter is NULL, the new head will be inserted.
[in] size the size of an item to be inserted.
Returns:
Pointer to the inserted list item. NULL indicates failure.

Definition at line 43 of file list.c.

References winx_heap_alloc().

void __stdcall winx_list_remove_item ( list_entry **  phead,
list_entry *  item 
)

Removes an item from double linked list.

Frees memory allocated for an item to be removed.

Parameters:
[in,out] phead pointer to a variable pointing to the list head.
[in] item pointer to an item which must be removed.

Definition at line 77 of file list.c.

References winx_heap_free().

void __stdcall winx_list_destroy ( list_entry **  phead  ) 

Destroys a double linked list.

Frees memory allocated for all list items.

Parameters:
[in,out] phead pointer to a variable pointing to the list head.

Definition at line 107 of file list.c.

References winx_heap_free().


Generated on Sat May 29 23:06:45 2010 for ZenWINX by doxygen 1.6.2