

|
list
Synopsis
typedef xmlSecPtr;
struct xmlSecPtrList;
void xmlSecPtrListSetDefaultAllocMode
(xmlSecAllocMode defAllocMode,
size_t defInitialSize);
int xmlSecPtrListInitialize (xmlSecPtrListPtr list,
xmlSecPtrListId id);
void xmlSecPtrListFinalize (xmlSecPtrListPtr list);
xmlSecPtrListPtr xmlSecPtrListCreate (xmlSecPtrListId id);
void xmlSecPtrListDestroy (xmlSecPtrListPtr list);
int xmlSecPtrListCopy (xmlSecPtrListPtr dst,
xmlSecPtrListPtr src);
xmlSecPtrListPtr xmlSecPtrListDuplicate (xmlSecPtrListPtr list);
size_t xmlSecPtrListGetSize (xmlSecPtrListPtr list);
xmlSecPtr xmlSecPtrListGetItem (xmlSecPtrListPtr list,
size_t pos);
int xmlSecPtrListAdd (xmlSecPtrListPtr list,
xmlSecPtr item);
int xmlSecPtrListSet (xmlSecPtrListPtr list,
xmlSecPtr item,
size_t pos);
int xmlSecPtrListRemove (xmlSecPtrListPtr list,
size_t pos);
void xmlSecPtrListDebugDump (xmlSecPtrListPtr list,
FILE *output);
void xmlSecPtrListDebugXmlDump (xmlSecPtrListPtr list,
FILE *output);
#define xmlSecPtrListGetName (list)
#define xmlSecPtrListIsValid (list)
#define xmlSecPtrListCheckId (list, dataId)
#define xmlSecPtrListIdUnknown
xmlSecPtr (*xmlSecPtrDuplicateItemMethod) (xmlSecPtr ptr);
void (*xmlSecPtrDestroyItemMethod) (xmlSecPtr ptr);
void (*xmlSecPtrDebugDumpItemMethod) (xmlSecPtr ptr,
FILE *output);
struct xmlSecPtrListKlass;
#define xmlSecPtrListKlassGetName (klass)
#define xmlSecStaticObjectListId
xmlSecPtrListId xmlSecStaticObjectListGetKlass
(void);
#define xmlSecStringListId
xmlSecPtrListId xmlSecStringListGetKlass (void); |
Details
struct xmlSecPtrList
struct xmlSecPtrList {
xmlSecPtrListId id;
xmlSecPtr* data;
size_t use;
size_t max;
xmlSecAllocMode allocMode;
}; |
The pointers list.
xmlSecPtrListSetDefaultAllocMode ()
void xmlSecPtrListSetDefaultAllocMode
(xmlSecAllocMode defAllocMode,
size_t defInitialSize); |
xmlSecPtrListInitialize ()
int xmlSecPtrListInitialize (xmlSecPtrListPtr list,
xmlSecPtrListId id); |
xmlSecPtrListFinalize ()
void xmlSecPtrListFinalize (xmlSecPtrListPtr list); |
xmlSecPtrListCreate ()
xmlSecPtrListPtr xmlSecPtrListCreate (xmlSecPtrListId id); |
xmlSecPtrListDestroy ()
void xmlSecPtrListDestroy (xmlSecPtrListPtr list); |
xmlSecPtrListCopy ()
int xmlSecPtrListCopy (xmlSecPtrListPtr dst,
xmlSecPtrListPtr src); |
xmlSecPtrListDuplicate ()
xmlSecPtrListPtr xmlSecPtrListDuplicate (xmlSecPtrListPtr list); |
xmlSecPtrListGetSize ()
size_t xmlSecPtrListGetSize (xmlSecPtrListPtr list); |
xmlSecPtrListGetItem ()
xmlSecPtr xmlSecPtrListGetItem (xmlSecPtrListPtr list,
size_t pos); |
xmlSecPtrListAdd ()
int xmlSecPtrListAdd (xmlSecPtrListPtr list,
xmlSecPtr item); |
xmlSecPtrListSet ()
int xmlSecPtrListSet (xmlSecPtrListPtr list,
xmlSecPtr item,
size_t pos); |
xmlSecPtrListRemove ()
int xmlSecPtrListRemove (xmlSecPtrListPtr list,
size_t pos); |
xmlSecPtrListDebugDump ()
void xmlSecPtrListDebugDump (xmlSecPtrListPtr list,
FILE *output); |
xmlSecPtrListDebugXmlDump ()
void xmlSecPtrListDebugXmlDump (xmlSecPtrListPtr list,
FILE *output); |
xmlSecPtrListGetName()
#define xmlSecPtrListGetName(list) |
Macro. Returns lists's name.
xmlSecPtrListIsValid()
#define xmlSecPtrListIsValid(list) |
Macro. Returns 1 if list is not NULL and list->id is not NULL
or 0 otherwise.
xmlSecPtrListCheckId()
#define xmlSecPtrListCheckId(list, dataId) |
Macro. Returns 1 if list is valid and list's id is equal to dataId.
xmlSecPtrListIdUnknown
#define xmlSecPtrListIdUnknown NULL |
The "unknown" id.
xmlSecPtrDuplicateItemMethod ()
Duplicates item ptr.
xmlSecPtrDestroyItemMethod ()
void (*xmlSecPtrDestroyItemMethod) (xmlSecPtr ptr); |
Destroys list item ptr.
xmlSecPtrDebugDumpItemMethod ()
void (*xmlSecPtrDebugDumpItemMethod) (xmlSecPtr ptr,
FILE *output); |
Prints debug information about item to output.
struct xmlSecPtrListKlass
struct xmlSecPtrListKlass {
const xmlChar* name;
xmlSecPtrDuplicateItemMethod duplicateItem;
xmlSecPtrDestroyItemMethod destroyItem;
xmlSecPtrDebugDumpItemMethod debugDumpItem;
xmlSecPtrDebugDumpItemMethod debugXmlDumpItem;
}; |
name: the list klass name.
duplicateItem: the duplciate item method.
destroyItem: the destroy item method.
debugDumpItem: the debug dump item method.
debugXmlDumpItem: the debug dump item in xml format method.
List klass.
xmlSecPtrListKlassGetName()
#define xmlSecPtrListKlassGetName(klass) |
Macro. Returns the list klass name.
xmlSecStaticObjectListId
#define xmlSecStaticObjectListId |
Static objects klass (no destroy or duplicate methods).
xmlSecStaticObjectListGetKlass ()
xmlSecPtrListId xmlSecStaticObjectListGetKlass
(void); |
xmlSecStringListId
#define xmlSecStringListId |
Strings list klass.
xmlSecStringListGetKlass ()
xmlSecPtrListId xmlSecStringListGetKlass (void); |
|
Aleksey Sanin
|
|