![]() |
ZenWINX Architecture - Reference Manual - Guides |
|
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. |
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.
[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. |
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.
[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.
[in,out] | phead | pointer to a variable pointing to the list head. |
Definition at line 107 of file list.c.
References winx_heap_free().