|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
|
|
Packit Service |
a31ea6 |
TD {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
|
|
Packit Service |
a31ea6 |
H1 {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
H2 {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
H3 {font-family: Verdana,Arial,Helvetica}
|
|
Packit Service |
a31ea6 |
A:link, A:visited, A:active { text-decoration: underline }
|
|
Packit Service |
a31ea6 |
</style><style type="text/css">
|
|
Packit Service |
a31ea6 |
div.deprecated pre.programlisting {border-style: double;border-color:red}
|
|
Packit Service |
a31ea6 |
pre.programlisting {border-style: double;background: #EECFA1}
|
|
Packit Service |
a31ea6 |
</style><title>Module list from libxml2</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000"><center>API Menu</center> | <form action="../search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form> |
<center>API Indexes</center> | |
<center>Related links</center> | |
|
| this module implement the list support used in various place in the library. Table of ContentsStructure xmlLink struct _xmlLink |
|
|
|
|
|
|
Packit Service |
a31ea6 |
The content of this structure is not made public by the API.
|
|
Packit Service |
a31ea6 |
Typedef xmlLink * xmlLinkPtr
|
|
Packit Service |
a31ea6 |
Structure xmlList struct _xmlList
|
|
Packit Service |
a31ea6 |
The content of this structure is not made public by the API.
|
|
Packit Service |
a31ea6 |
Typedef xmlList * xmlListPtr
|
|
Packit Service |
a31ea6 |
void * xmlLinkGetData (xmlLinkPtr lk)
|
|
Packit Service |
a31ea6 |
int xmlListAppend (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
void xmlListClear (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
int xmlListCopy (xmlListPtr cur, const xmlListPtr old)
|
|
Packit Service |
a31ea6 |
xmlListPtr xmlListCreate (xmlListDeallocator deallocator, xmlListDataCompare compare)
|
|
Packit Service |
a31ea6 |
Function type: xmlListDataCompare
|
|
Packit Service |
a31ea6 |
int xmlListDataCompare (const void * data0, const void * data1)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Function type: xmlListDeallocator
|
|
Packit Service |
a31ea6 |
void xmlListDeallocator (xmlLinkPtr lk)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
void xmlListDelete (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
xmlListPtr xmlListDup (const xmlListPtr old)
|
|
Packit Service |
a31ea6 |
int xmlListEmpty (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
xmlLinkPtr xmlListEnd (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
xmlLinkPtr xmlListFront (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
int xmlListInsert (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
void xmlListMerge (xmlListPtr l1, xmlListPtr l2)
|
|
Packit Service |
a31ea6 |
void xmlListPopBack (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
void xmlListPopFront (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
int xmlListPushBack (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
int xmlListPushFront (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
int xmlListRemoveAll (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
int xmlListRemoveFirst (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
int xmlListRemoveLast (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
void xmlListReverse (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
void * xmlListReverseSearch (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
void xmlListReverseWalk (xmlListPtr l, xmlListWalker walker, const void * user)
|
|
Packit Service |
a31ea6 |
void * xmlListSearch (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
int xmlListSize (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
void xmlListSort (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
void xmlListWalk (xmlListPtr l, xmlListWalker walker, const void * user)
|
|
Packit Service |
a31ea6 |
Function type: xmlListWalker
|
|
Packit Service |
a31ea6 |
int xmlListWalker (const void * data, const void * user)
|
|
Packit Service |
a31ea6 |
|
|
Packit Service |
a31ea6 |
Description
|
|
Packit Service |
a31ea6 |
Structure xmlLink struct _xmlLink {
|
|
Packit Service |
a31ea6 |
The content of this structure is not made public by the API.
|
|
Packit Service |
a31ea6 |
}Structure xmlList struct _xmlList {
|
|
Packit Service |
a31ea6 |
The content of this structure is not made public by the API.
|
|
Packit Service |
a31ea6 |
}Function: xmlLinkGetDatavoid * xmlLinkGetData (xmlLinkPtr lk)
|
|
Packit Service |
a31ea6 |
See Returns.
|
|
Packit Service |
a31ea6 |
<tt>lk</tt>: | a link | <tt>Returns</tt>: | a pointer to the data referenced from this link |
Function: xmlListAppendint xmlListAppend (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
Insert data in the ordered list at the end for this value
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | the data | <tt>Returns</tt>: | 0 in case of success, 1 in case of failure |
Function: xmlListClearvoid xmlListClear (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Remove the all data in the list
|
|
Packit Service |
a31ea6 |
Function: xmlListCopyint xmlListCopy (xmlListPtr cur, const xmlListPtr old)
|
|
Packit Service |
a31ea6 |
Move all the element from the old list in the new list
|
|
Packit Service |
a31ea6 |
<tt>cur</tt>: | the new list | <tt>old</tt>: | the old list | <tt>Returns</tt>: | 0 in case of success 1 in case of error |
Function: xmlListCreatexmlListPtr xmlListCreate (xmlListDeallocator deallocator, xmlListDataCompare compare)
|
|
Packit Service |
a31ea6 |
Create a new list
|
|
Packit Service |
a31ea6 |
<tt>deallocator</tt>: | an optional deallocator function | <tt>compare</tt>: | an optional comparison function | <tt>Returns</tt>: | the new list or NULL in case of error |
Function type: xmlListDataCompareFunction type: xmlListDataCompare
|
|
Packit Service |
a31ea6 |
int xmlListDataCompare (const void * data0, const void * data1)
|
|
Packit Service |
a31ea6 |
Callback function used to compare 2 data. <tt>data0</tt>: | the first data | <tt>data1</tt>: | the second data | <tt>Returns</tt>: | 0 is equality, -1 or 1 otherwise depending on the ordering. |
|
|
Packit Service |
a31ea6 |
Function type: xmlListDeallocatorFunction type: xmlListDeallocator
|
|
Packit Service |
a31ea6 |
void xmlListDeallocator (xmlLinkPtr lk)
|
|
Packit Service |
a31ea6 |
Callback function used to free data from a list. <tt>lk</tt>: | the data to deallocate |
|
|
Packit Service |
a31ea6 |
Function: xmlListDeletevoid xmlListDelete (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Deletes the list and its associated data
|
|
Packit Service |
a31ea6 |
Function: xmlListDupxmlListPtr xmlListDup (const xmlListPtr old)
|
|
Packit Service |
a31ea6 |
Duplicate the list
|
|
Packit Service |
a31ea6 |
<tt>old</tt>: | the list | <tt>Returns</tt>: | a new copy of the list or NULL in case of error |
Function: xmlListEmptyint xmlListEmpty (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Is the list empty ?
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>Returns</tt>: | 1 if the list is empty, 0 if not empty and -1 in case of error |
Function: xmlListEndxmlLinkPtr xmlListEnd (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Get the last element in the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>Returns</tt>: | the last element in the list, or NULL |
Function: xmlListFrontxmlLinkPtr xmlListFront (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Get the first element in the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>Returns</tt>: | the first element in the list, or NULL |
Function: xmlListInsertint xmlListInsert (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
Insert data in the ordered list at the beginning for this value
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | the data | <tt>Returns</tt>: | 0 in case of success, 1 in case of failure |
Function: xmlListMergevoid xmlListMerge (xmlListPtr l1, xmlListPtr l2)
|
|
Packit Service |
a31ea6 |
include all the elements of the second list in the first one and clear the second list
|
|
Packit Service |
a31ea6 |
<tt>l1</tt>: | the original list | <tt>l2</tt>: | the new list |
Function: xmlListPopBackvoid xmlListPopBack (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Removes the last element in the list
|
|
Packit Service |
a31ea6 |
Function: xmlListPopFrontvoid xmlListPopFront (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Removes the first element in the list
|
|
Packit Service |
a31ea6 |
Function: xmlListPushBackint xmlListPushBack (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
add the new data at the end of the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | new data | <tt>Returns</tt>: | 1 if successful, 0 otherwise |
Function: xmlListPushFrontint xmlListPushFront (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
add the new data at the beginning of the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | new data | <tt>Returns</tt>: | 1 if successful, 0 otherwise |
Function: xmlListRemoveAllint xmlListRemoveAll (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
Remove the all instance associated to data in the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | list data | <tt>Returns</tt>: | the number of deallocation, or 0 if not found |
Function: xmlListRemoveFirstint xmlListRemoveFirst (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
Remove the first instance associated to data in the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | list data | <tt>Returns</tt>: | 1 if a deallocation occurred, or 0 if not found |
Function: xmlListRemoveLastint xmlListRemoveLast (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
Remove the last instance associated to data in the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | list data | <tt>Returns</tt>: | 1 if a deallocation occurred, or 0 if not found |
Function: xmlListReversevoid xmlListReverse (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Reverse the order of the elements in the list
|
|
Packit Service |
a31ea6 |
Function: xmlListReverseSearchvoid * xmlListReverseSearch (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
Search the list in reverse order for an existing value of @data
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | a search value | <tt>Returns</tt>: | the value associated to @data or NULL in case of error |
Function: xmlListReverseWalkvoid xmlListReverseWalk (xmlListPtr l, xmlListWalker walker, const void * user)
|
|
Packit Service |
a31ea6 |
Walk all the element of the list in reverse order and apply the walker function to it
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>walker</tt>: | a processing function | <tt>user</tt>: | a user parameter passed to the walker function |
Function: xmlListSearchvoid * xmlListSearch (xmlListPtr l, void * data)
|
|
Packit Service |
a31ea6 |
Search the list for an existing value of @data
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>data</tt>: | a search value | <tt>Returns</tt>: | the value associated to @data or NULL in case of error |
Function: xmlListSizeint xmlListSize (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Get the number of elements in the list
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>Returns</tt>: | the number of elements in the list or -1 in case of error |
Function: xmlListSortvoid xmlListSort (xmlListPtr l)
|
|
Packit Service |
a31ea6 |
Sort all the elements in the list
|
|
Packit Service |
a31ea6 |
Function: xmlListWalkvoid xmlListWalk (xmlListPtr l, xmlListWalker walker, const void * user)
|
|
Packit Service |
a31ea6 |
Walk all the element of the first from first to last and apply the walker function to it
|
|
Packit Service |
a31ea6 |
<tt>l</tt>: | a list | <tt>walker</tt>: | a processing function | <tt>user</tt>: | a user parameter passed to the walker function |
Function type: xmlListWalkerFunction type: xmlListWalker
|
|
Packit Service |
a31ea6 |
int xmlListWalker (const void * data, const void * user)
|
|
Packit Service |
a31ea6 |
Callback function used when walking a list with xmlListWalk(). <tt>data</tt>: | the data found in the list | <tt>user</tt>: | extra user provided data to the walker | <tt>Returns</tt>: | 0 to stop walking the list, 1 otherwise. |
|
|
Packit Service |
a31ea6 |
Daniel Veillard </body></html>
|