Files | |
file | wbxml_lists.c |
Generic Lists Functions. | |
file | wbxml_lists.h |
Generic Lists Functions. | |
Defines | |
#define | wbxml_list_create() wbxml_mem_cleam(wbxml_list_create_real()) |
Typedefs | |
typedef void | WBXMLListEltCleaner (void *item) |
A List Element Cleaner Function prototype. | |
Functions | |
WBXMLList * | wbxml_list_create_real (void) |
Create a List. | |
void | wbxml_list_destroy (WBXMLList *list, WBXMLListEltCleaner *destructor) |
Destroy a List. | |
unsigned int | wbxml_list_len (WBXMLList *list) |
Get list length. | |
unsigned char | wbxml_list_append (WBXMLList *list, void *item) |
Append an element at end of list. | |
WB_BOOL | wbxml_list_insert (WBXMLList *list, void *elt, WB_ULONG pos) |
Append an element to a list. | |
void * | wbxml_list_get (WBXMLList *list, WB_ULONG index) |
Get an Element from list. | |
void * | wbxml_list_extract_first (WBXMLList *list) |
Extract first element of a List. |
|
Definition at line 64 of file wbxml_lists.h. Referenced by wbxml_buffer_split_words_real(), and wbxml_encoder_create_real(). |
|
A List Element Cleaner Function prototype.
Definition at line 56 of file wbxml_lists.h. Referenced by wbxml_list_destroy(). |
|
Append an element at end of list.
Definition at line 105 of file wbxml_lists.c. References FALSE, WBXMLList_s::head, WBXMLList_s::len, WBXMLListElt_s::next, NULL, WBXMLList_s::tail, TRUE, WB_BOOL, and wbxml_elt_create. Referenced by wbxml_buffer_split_words_real(). |
|
Create a List.
Definition at line 62 of file wbxml_lists.c. References WBXMLList_s::head, WBXMLList_s::len, NULL, WBXMLList_s::tail, and wbxml_malloc(). |
|
Destroy a List.
Definition at line 77 of file wbxml_lists.c. References WBXMLList_s::head, WBXMLListElt_s::next, NULL, wbxml_elt_destroy(), wbxml_free(), and WBXMLListEltCleaner. Referenced by wbxml_buffer_split_words_real(), and wbxml_encoder_destroy(). |
|
Extract first element of a List.
Definition at line 199 of file wbxml_lists.c. References WBXMLList_s::head, WBXMLListElt_s::item, WBXMLList_s::len, WBXMLListElt_s::next, NULL, WBXMLList_s::tail, wbxml_elt_destroy(), and wbxml_list_len(). |
|
Get an Element from list.
|
|
Append an element to a list.
|
|
Get list length.
Definition at line 96 of file wbxml_lists.c. References WBXMLList_s::len, NULL, and WB_ULONG. Referenced by wbxml_list_extract_first(), and wbxml_list_get(). |