|
ReactOS 0.4.16-dev-2132-g3885311
|
#include <libxml/xmlversion.h>

Go to the source code of this file.
Typedefs | |
| typedef struct _xmlLink | xmlLink |
| typedef xmlLink * | xmlLinkPtr |
| typedef struct _xmlList | xmlList |
| typedef xmlList * | xmlListPtr |
| typedef void(* | xmlListDeallocator) (xmlLinkPtr lk) |
| typedef int(* | xmlListDataCompare) (const void *data0, const void *data1) |
| typedef int(* | xmlListWalker) (const void *data, void *user) |
| typedef xmlLink* xmlLinkPtr |
| typedef void(* xmlListDeallocator) (xmlLinkPtr lk) |
| typedef xmlList* xmlListPtr |
xmlListWalker: @data: the data found in the list @user: extra user provided data to the walker
Callback function used when walking a list with xmlListWalk().
Returns 0 to stop walking the list, 1 otherwise.
| XMLPUBFUN void * xmlLinkGetData | ( | xmlLinkPtr | lk | ) |
xmlLinkGetData: @lk: a link
See Returns.
Returns a pointer to the data referenced from this link
Definition at line 604 of file list.c.
Referenced by xmlFreeRef().
| XMLPUBFUN int xmlListAppend | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListAppend: @l: a list @data: the data
Insert data in the ordered list at the end for this value
Returns 0 in case of success, 1 in case of failure
Definition at line 305 of file list.c.
Referenced by xmlAddRef().
| XMLPUBFUN void xmlListClear | ( | xmlListPtr | l | ) |
xmlListClear: @l: a list
Remove the all data in the list
Definition at line 422 of file list.c.
Referenced by xmlListDelete(), xmlListMerge(), and xmlListSort().
| XMLPUBFUN int xmlListCopy | ( | xmlListPtr | cur, |
| const xmlListPtr | old | ||
| ) |
xmlListCopy: @cur: the new list @old: the old list
Move all the element from the old list in the new list
Returns 0 in case of success 1 in case of error
Definition at line 761 of file list.c.
Referenced by xmlListDup(), and xmlListMerge().
| XMLPUBFUN xmlListPtr xmlListCreate | ( | xmlListDeallocator | deallocator, |
| xmlListDataCompare | compare | ||
| ) |
xmlListCreate: @deallocator: an optional deallocator function @compare: an optional comparison function
Create a new list
Returns the new list or NULL in case of error
Definition at line 188 of file list.c.
Referenced by xmlAddRef(), and xmlListDup().
| XMLPUBFUN void xmlListDelete | ( | xmlListPtr | l | ) |
xmlListDelete: @l: a list
Deletes the list and its associated data
Definition at line 333 of file list.c.
Referenced by xmlAddRef(), xmlFreeRefTableEntry(), xmlListCopy(), and xmlListSort().
| XMLPUBFUN xmlListPtr xmlListDup | ( | const xmlListPtr | old | ) |
xmlListDup: @old: the list
Duplicate the list
Returns a new copy of the list or NULL in case of error
Definition at line 732 of file list.c.
Referenced by xmlListSort().
| XMLPUBFUN int xmlListEmpty | ( | xmlListPtr | l | ) |
xmlListEmpty: @l: a list
Is the list empty ?
Returns 1 if the list is empty, 0 if not empty and -1 in case of error
Definition at line 446 of file list.c.
Referenced by xmlListPopBack(), xmlListPopFront(), xmlListSort(), and xmlRemoveRef().
| XMLPUBFUN xmlLinkPtr xmlListEnd | ( | xmlListPtr | l | ) |
| XMLPUBFUN xmlLinkPtr xmlListFront | ( | xmlListPtr | l | ) |
| XMLPUBFUN int xmlListInsert | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListInsert: @l: a list @data: the data
Insert data in the ordered list at the beginning for this value
Returns 0 in case of success, 1 in case of failure
Definition at line 273 of file list.c.
Referenced by xmlListCopy().
| XMLPUBFUN void xmlListMerge | ( | xmlListPtr | l1, |
| xmlListPtr | l2 | ||
| ) |
xmlListMerge: @l1: the original list @l2: the new list
include all the elements of the second list in the first one and clear the second list
Definition at line 717 of file list.c.
Referenced by xmlListSort().
| XMLPUBFUN void xmlListPopBack | ( | xmlListPtr | l | ) |
| XMLPUBFUN void xmlListPopFront | ( | xmlListPtr | l | ) |
xmlListPopFront: @l: a list
Removes the first element in the list
| XMLPUBFUN int xmlListPushBack | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListPushBack: @l: a list @data: new data
add the new data at the end of the list
Returns 1 if successful, 0 otherwise
Definition at line 574 of file list.c.
| XMLPUBFUN int xmlListPushFront | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListPushFront: @l: a list @data: new data
add the new data at the beginning of the list
Returns 1 if successful, 0 otherwise
Definition at line 542 of file list.c.
| XMLPUBFUN int xmlListRemoveAll | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
| XMLPUBFUN int xmlListRemoveFirst | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListRemoveFirst: @l: a list @data: list data
Remove the first instance associated to data in the list
Returns 1 if a deallocation occurred, or 0 if not found
Definition at line 353 of file list.c.
Referenced by xmlListRemoveAll(), and xmlWalkRemoveRef().
| XMLPUBFUN int xmlListRemoveLast | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListRemoveLast: @l: a list @data: list data
Remove the last instance associated to data in the list
Returns 1 if a deallocation occurred, or 0 if not found
Definition at line 378 of file list.c.
| XMLPUBFUN void xmlListReverse | ( | xmlListPtr | l | ) |
xmlListReverse: @l: a list
Reverse the order of the elements in the list
Definition at line 618 of file list.c.
| XMLPUBFUN void * xmlListReverseSearch | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListReverseSearch: @l: a list @data: a search value
Search the list in reverse order for an existing value of @data
Returns the value associated to @data or NULL in case of error
| XMLPUBFUN void xmlListReverseWalk | ( | xmlListPtr | l, |
| xmlListWalker | walker, | ||
| void * | user | ||
| ) |
xmlListReverseWalk: @l: a list @walker: a processing function @user: a user parameter passed to the walker function
Walk all the element of the list in reverse order and apply the walker function to it
| XMLPUBFUN void * xmlListSearch | ( | xmlListPtr | l, |
| void * | data | ||
| ) |
xmlListSearch: @l: a list @data: a search value
Search the list for an existing value of @data
Returns the value associated to @data or NULL in case of error
| XMLPUBFUN int xmlListSize | ( | xmlListPtr | l | ) |
xmlListSize: @l: a list
Get the number of elements in the list
Returns the number of elements in the list or -1 in case of error
| XMLPUBFUN void xmlListSort | ( | xmlListPtr | l | ) |
xmlListSort: @l: a list
Sort all the elements in the list
Definition at line 643 of file list.c.
| XMLPUBFUN void xmlListWalk | ( | xmlListPtr | l, |
| xmlListWalker | walker, | ||
| void * | user | ||
| ) |
xmlListWalk: @l: a list @walker: a processing function @user: a user parameter passed to the walker function
Walk all the element of the first from first to last and apply the walker function to it
Definition at line 676 of file list.c.
Referenced by xmlRemoveRef().