/** * xmlSecPtrListFinalize: * @list: the pointer to list. * * Cleans up the list initialized with #xmlSecPtrListInitialize * function. */ void xmlSecPtrListFinalize(xmlSecPtrListPtr list) { xmlSecAssert(xmlSecPtrListIsValid(list)); xmlSecPtrListEmpty(list); memset(list, 0, sizeof(xmlSecPtrList)); }
/** * xmlSecKeyReqReset: * @keyReq: the pointer to key requirements object. * * Resets key requirements object for new key search. */ void xmlSecKeyReqReset(xmlSecKeyReqPtr keyReq) { xmlSecAssert(keyReq != NULL); xmlSecPtrListEmpty(&keyReq->keyUseWithList); keyReq->keyId = NULL; keyReq->keyType = 0; keyReq->keyUsage = xmlSecKeyUsageAny; keyReq->keyBitsSize = 0; }
PyObject *xmlsec_PtrListEmpty(PyObject *self, PyObject *args) { PyObject *list_obj; xmlSecPtrListPtr list; if (CheckArgs(args, "O:ptrListEmpty")) { if (!PyArg_ParseTuple(args, "O:ptrListEmpty", &list_obj)) return NULL; } else return NULL; list = xmlSecPtrListPtr_get(list_obj); xmlSecPtrListEmpty(list); Py_INCREF(Py_None); return (Py_None); }