ReactOS 0.4.16-dev-88-ga65b6ae
|
#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 *XMLCALL 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 XMLCALL 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 XMLCALL 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 XMLCALL 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 XMLCALL 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 XMLCALL 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 XMLCALL 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 XMLCALL 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 XMLCALL xmlListEnd | ( | xmlListPtr | l | ) |
XMLPUBFUN xmlLinkPtr XMLCALL xmlListFront | ( | xmlListPtr | l | ) |
XMLPUBFUN int XMLCALL 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 XMLCALL 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 XMLCALL xmlListPopBack | ( | xmlListPtr | l | ) |
XMLPUBFUN void XMLCALL xmlListPopFront | ( | xmlListPtr | l | ) |
xmlListPopFront: @l: a list
Removes the first element in the list
XMLPUBFUN int XMLCALL 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 XMLCALL 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 XMLCALL xmlListRemoveAll | ( | xmlListPtr | l, |
void * | data | ||
) |
XMLPUBFUN int XMLCALL 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 XMLCALL 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 XMLCALL 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 *XMLCALL 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 XMLCALL 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 *XMLCALL 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 XMLCALL 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 XMLCALL xmlListSort | ( | xmlListPtr | l | ) |
xmlListSort: @l: a list
Sort all the elements in the list
Definition at line 643 of file list.c.
XMLPUBFUN void XMLCALL 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().