Eneboo - Documentación para desarrolladores
Clases | 'defines' | Funciones
Referencia del Archivo src/libdigidoc/libxml2/list.c
#include "libxml.h"
#include <stdlib.h>
#include <string.h>
#include <libxml/xmlmemory.h>
#include <libxml/list.h>
#include <libxml/globals.h>
#include "elfgcchack.h"

Clases

struct  _xmlLink
struct  _xmlList

'defines'

#define IN_LIBXML
#define bottom_list

Funciones

xmlListPtr xmlListCreate (xmlListDeallocator deallocator, xmlListDataCompare compare)
void * xmlListSearch (xmlListPtr l, void *data)
void * xmlListReverseSearch (xmlListPtr l, void *data)
int xmlListInsert (xmlListPtr l, void *data)
int xmlListAppend (xmlListPtr l, void *data)
void xmlListDelete (xmlListPtr l)
int xmlListRemoveFirst (xmlListPtr l, void *data)
int xmlListRemoveLast (xmlListPtr l, void *data)
int xmlListRemoveAll (xmlListPtr l, void *data)
void xmlListClear (xmlListPtr l)
int xmlListEmpty (xmlListPtr l)
xmlLinkPtr xmlListFront (xmlListPtr l)
xmlLinkPtr xmlListEnd (xmlListPtr l)
int xmlListSize (xmlListPtr l)
void xmlListPopFront (xmlListPtr l)
void xmlListPopBack (xmlListPtr l)
int xmlListPushFront (xmlListPtr l, void *data)
int xmlListPushBack (xmlListPtr l, void *data)
void * xmlLinkGetData (xmlLinkPtr lk)
void xmlListReverse (xmlListPtr l)
void xmlListSort (xmlListPtr l)
void xmlListWalk (xmlListPtr l, xmlListWalker walker, const void *user)
void xmlListReverseWalk (xmlListPtr l, xmlListWalker walker, const void *user)
void xmlListMerge (xmlListPtr l1, xmlListPtr l2)
xmlListPtr xmlListDup (const xmlListPtr old)
int xmlListCopy (xmlListPtr cur, const xmlListPtr old)

Documentación de los 'defines'

#define bottom_list
#define IN_LIBXML

Documentación de las funciones

void* xmlLinkGetData ( xmlLinkPtr  lk)

xmlLinkGetData: : a link

See Returns.

Returns a pointer to the data referenced from this link

int xmlListAppend ( xmlListPtr  l,
void *  data 
)

xmlListAppend: : a list : 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

void xmlListClear ( xmlListPtr  l)

xmlListClear: : a list

Remove the all data in the list

int xmlListCopy ( xmlListPtr  cur,
const xmlListPtr  old 
)

xmlListCopy: : the new list : 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

xmlListPtr xmlListCreate ( xmlListDeallocator  deallocator,
xmlListDataCompare  compare 
)

xmlListCreate: : an optional deallocator function : an optional comparison function

Create a new list

Returns the new list or NULL in case of error

void xmlListDelete ( xmlListPtr  l)

xmlListDelete: : a list

Deletes the list and its associated data

xmlListPtr xmlListDup ( const xmlListPtr  old)

xmlListDup: : the list

Duplicate the list

Returns a new copy of the list or NULL in case of error

int xmlListEmpty ( xmlListPtr  l)

xmlListEmpty: : a list

Is the list empty ?

Returns 1 if the list is empty, 0 if not empty and -1 in case of error

xmlLinkPtr xmlListEnd ( xmlListPtr  l)

xmlListEnd: : a list

Get the last element in the list

Returns the last element in the list, or NULL

xmlLinkPtr xmlListFront ( xmlListPtr  l)

xmlListFront: : a list

Get the first element in the list

Returns the first element in the list, or NULL

int xmlListInsert ( xmlListPtr  l,
void *  data 
)

xmlListInsert: : a list : 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

void xmlListMerge ( xmlListPtr  l1,
xmlListPtr  l2 
)

xmlListMerge: : the original list : the new list

include all the elements of the second list in the first one and clear the second list

void xmlListPopBack ( xmlListPtr  l)

xmlListPopBack: : a list

Removes the last element in the list

void xmlListPopFront ( xmlListPtr  l)

xmlListPopFront: : a list

Removes the first element in the list

int xmlListPushBack ( xmlListPtr  l,
void *  data 
)

xmlListPushBack: : a list : new data

add the new data at the end of the list

Returns 1 if successful, 0 otherwise

int xmlListPushFront ( xmlListPtr  l,
void *  data 
)

xmlListPushFront: : a list : new data

add the new data at the beginning of the list

Returns 1 if successful, 0 otherwise

int xmlListRemoveAll ( xmlListPtr  l,
void *  data 
)

xmlListRemoveAll: : a list : list data

Remove the all instance associated to data in the list

Returns the number of deallocation, or 0 if not found

int xmlListRemoveFirst ( xmlListPtr  l,
void *  data 
)

xmlListRemoveFirst: : a list : list data

Remove the first instance associated to data in the list

Returns 1 if a deallocation occured, or 0 if not found

int xmlListRemoveLast ( xmlListPtr  l,
void *  data 
)

xmlListRemoveLast: : a list : list data

Remove the last instance associated to data in the list

Returns 1 if a deallocation occured, or 0 if not found

void xmlListReverse ( xmlListPtr  l)

xmlListReverse: : a list

Reverse the order of the elements in the list

void* xmlListReverseSearch ( xmlListPtr  l,
void *  data 
)

xmlListReverseSearch: : a list : a search value

Search the list in reverse order for an existing value of

Returns the value associated to or NULL in case of error

void xmlListReverseWalk ( xmlListPtr  l,
xmlListWalker  walker,
const void *  user 
)

xmlListReverseWalk: : a list : a processing function : 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

void* xmlListSearch ( xmlListPtr  l,
void *  data 
)

xmlListSearch: : a list : a search value

Search the list for an existing value of

Returns the value associated to or NULL in case of error

int xmlListSize ( xmlListPtr  l)

xmlListSize: : a list

Get the number of elements in the list

Returns the number of elements in the list or -1 in case of error

void xmlListSort ( xmlListPtr  l)

xmlListSort: : a list

Sort all the elements in the list

void xmlListWalk ( xmlListPtr  l,
xmlListWalker  walker,
const void *  user 
)

xmlListWalk: : a list : a processing function : 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

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'