| Top |
| void | xmlSecPtrListSetDefaultAllocMode () |
| int | xmlSecPtrListInitialize () |
| void | xmlSecPtrListFinalize () |
| xmlSecPtrListPtr | xmlSecPtrListCreate () |
| void | xmlSecPtrListDestroy () |
| void | xmlSecPtrListEmpty () |
| int | xmlSecPtrListCopy () |
| xmlSecPtrListPtr | xmlSecPtrListDuplicate () |
| xmlSecSize | xmlSecPtrListGetSize () |
| xmlSecPtr | xmlSecPtrListGetItem () |
| int | xmlSecPtrListAdd () |
| int | xmlSecPtrListInsert () |
| int | xmlSecPtrListSet () |
| int | xmlSecPtrListRemove () |
| xmlSecPtr | xmlSecPtrListRemoveAndReturn () |
| void | xmlSecPtrListDebugDump () |
| void | xmlSecPtrListDebugXmlDump () |
| #define | xmlSecPtrListGetName() |
| #define | xmlSecPtrListIsValid() |
| #define | xmlSecPtrListCheckId() |
| xmlSecPtr | (*xmlSecPtrDuplicateItemMethod) () |
| void | (*xmlSecPtrDestroyItemMethod) () |
| void | (*xmlSecPtrDebugDumpItemMethod) () |
| #define | xmlSecPtrListKlassGetName() |
| xmlSecPtrListId | xmlSecStringListGetKlass () |
| struct | xmlSecPtrList |
| #define | xmlSecPtrListIdUnknown |
| struct | xmlSecPtrListKlass |
| #define | xmlSecStringListId |
void xmlSecPtrListSetDefaultAllocMode (xmlSecAllocMode defAllocMode,xmlSecSize defInitialSize);
Sets new default allocation mode and minimal initial list size.
int xmlSecPtrListInitialize (xmlSecPtrListPtr list,xmlSecPtrListId id);
Initializes the list of given klass. Caller is responsible for cleaning up by calling xmlSecPtrListFinalize function.
void
xmlSecPtrListFinalize (xmlSecPtrListPtr list);
Cleans up the list initialized with xmlSecPtrListInitialize function.
xmlSecPtrListPtr
xmlSecPtrListCreate (xmlSecPtrListId id);
Creates new list object. Caller is responsible for freeing returned list by calling xmlSecPtrListDestroy function.
void
xmlSecPtrListDestroy (xmlSecPtrListPtr list);
Destroys list
created with xmlSecPtrListCreate function.
void
xmlSecPtrListEmpty (xmlSecPtrListPtr list);
Remove all items from list
(if any).
int xmlSecPtrListCopy (xmlSecPtrListPtr dst,xmlSecPtrListPtr src);
Copies src
list items to dst
list using duplicateItem method
of the list klass. If duplicateItem method is NULL then
we jsut copy pointers to items.
xmlSecPtrListPtr
xmlSecPtrListDuplicate (xmlSecPtrListPtr list);
Creates a new copy of list
and all its items.
xmlSecPtr xmlSecPtrListGetItem (xmlSecPtrListPtr list,xmlSecSize pos);
Gets item from the list.
int xmlSecPtrListAdd (xmlSecPtrListPtr list,xmlSecPtr item);
Adds item
to the end of the list
.
int xmlSecPtrListInsert (xmlSecPtrListPtr list,xmlSecPtr item,xmlSecSize pos);
Inserts item
at the position pos
in the list
.
int xmlSecPtrListSet (xmlSecPtrListPtr list,xmlSecPtr item,xmlSecSize pos);
Sets the value of list item at position pos
. The old value
is destroyed.
int xmlSecPtrListRemove (xmlSecPtrListPtr list,xmlSecSize pos);
Destroys list item at the position pos
and sets it value to NULL.
xmlSecPtr xmlSecPtrListRemoveAndReturn (xmlSecPtrListPtr list,xmlSecSize pos);
Remove the list item at the position pos
and return it back.
void xmlSecPtrListDebugDump (xmlSecPtrListPtr list,FILE *output);
Prints debug information about list
to the output
.
void xmlSecPtrListDebugXmlDump (xmlSecPtrListPtr list,FILE *output);
Prints debug information about list
to the output
in XML format.
#define xmlSecPtrListIsValid(list)
Macro. Returns 1 if list
is not NULL and list->id
is not NULL
or 0 otherwise.
#define xmlSecPtrListCheckId(list, dataId)
Macro. Returns 1 if list
is valid and list
's id is equal to dataId
.
xmlSecPtr
(*xmlSecPtrDuplicateItemMethod) (xmlSecPtr ptr);
Duplicates item ptr
.
void
(*xmlSecPtrDestroyItemMethod) (xmlSecPtr ptr);
Destroys list item ptr
.
void (*xmlSecPtrDebugDumpItemMethod) (xmlSecPtr ptr,FILE *output);
Prints debug information about item
to output
.
#define xmlSecPtrListKlassGetName(klass)
Macro. Returns the list klass name.
struct xmlSecPtrList {
xmlSecPtrListId id;
xmlSecPtr* data;
xmlSecSize use;
xmlSecSize max;
xmlSecAllocMode allocMode;
};
The pointers list.
the list items description. |
||
the list data. |
||
xmlSecSize |
the current list size. |
|
xmlSecSize |
the max (allocated) list size. |
|
xmlSecAllocMode |
the memory allocation mode. |
struct xmlSecPtrListKlass {
const xmlChar* name;
xmlSecPtrDuplicateItemMethod duplicateItem;
xmlSecPtrDestroyItemMethod destroyItem;
xmlSecPtrDebugDumpItemMethod debugDumpItem;
xmlSecPtrDebugDumpItemMethod debugXmlDumpItem;
};
List klass.
the list klass name. |
||
xmlSecPtrDuplicateItemMethod |
the duplicate item method. |
|
xmlSecPtrDestroyItemMethod |
the destroy item method. |
|
xmlSecPtrDebugDumpItemMethod |
the debug dump item method. |
|
xmlSecPtrDebugDumpItemMethod |
the debug dump item in xml format method. |