本文整理汇总了C++中CheckArgs函数的典型用法代码示例。如果您正苦于以下问题:C++ CheckArgs函数的具体用法?C++ CheckArgs怎么用?C++ CheckArgs使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CheckArgs函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xmlSecEncCtxReset
PyObject *xmlsec_EncCtxReset(PyObject *self, PyObject *args) {
PyObject *encCtx_obj;
xmlSecEncCtxPtr encCtx;
if (CheckArgs(args, "O:encCtxReset")) {
if (!PyArg_ParseTuple(args, "O:encCtxReset", &encCtx_obj))
return NULL;
}
else return NULL;
encCtx = xmlSecEncCtxPtr_get(encCtx_obj);
xmlSecEncCtxReset(encCtx);
Py_INCREF(Py_None);
return (Py_None);
}
示例2: return
PyObject *xmlsec_EncCtxInitialize(PyObject *self, PyObject *args) {
PyObject *encCtx_obj, *keysMngr_obj;
xmlSecEncCtxPtr encCtx;
xmlSecKeysMngrPtr keysMngr = NULL;
if (CheckArgs(args, "Oo:encCtxInitialize")) {
if (!PyArg_ParseTuple(args, "OO:encCtxInitialize",
&encCtx_obj, &keysMngr_obj))
return NULL;
}
else return NULL;
encCtx = xmlSecEncCtxPtr_get(encCtx_obj);
keysMngr = xmlSecKeysMngrPtr_get(keysMngr_obj);
return (wrap_int(xmlSecEncCtxInitialize(encCtx, keysMngr)));
}
示例3: xmlSecKeyInfoCtxCreate
PyObject *xmlsec_KeyInfoCtxCreate(PyObject *self, PyObject *args) {
PyObject *mngr_obj;
xmlSecKeysMngrPtr mngr = NULL;
xmlSecKeyInfoCtxPtr keyInfoCtx;
if (CheckArgs(args, "o:keyInfoCtxCreate")) {
if (!PyArg_ParseTuple(args, "O:keyInfoCtxCreate", &mngr_obj))
return NULL;
}
else return NULL;
mngr = xmlSecKeysMngrPtr_get(mngr_obj);
/* mngr may be NULL */
keyInfoCtx = xmlSecKeyInfoCtxCreate(mngr);
return (wrap_xmlSecKeyInfoCtxPtr(keyInfoCtx));
}
示例4: return
PyObject *xmlsec_KeyDataGenerate(PyObject *self, PyObject *args) {
PyObject *data_obj;
xmlSecKeyDataPtr data;
xmlSecSize sizeBits;
xmlSecKeyDataType type;
if (CheckArgs(args, "OII:keyDataGenerate")) {
if (!PyArg_ParseTuple(args, "Oii:keyDataGenerate",
&data_obj, &sizeBits, &type))
return NULL;
}
else return NULL;
data = xmlSecKeyDataPtr_get(data_obj);
return (wrap_int(xmlSecKeyDataGenerate(data, sizeBits, type)));
}
示例5: xmlSecDSigReferenceCtxGetPreDigestBuffer
PyObject *xmlsec_DSigReferenceCtxGetPreDigestBuffer(PyObject *self, PyObject *args) {
PyObject *dsigRefCtx_obj;
xmlSecDSigReferenceCtxPtr dsigRefCtx;
xmlSecBufferPtr buf;
if (CheckArgs(args, "O:dsigReferenceCtxGetPreDigestBuffer")) {
if(!PyArg_ParseTuple(args, (char *) "O:dsigReferenceCtxGetPreDigestBuffer",
&dsigRefCtx_obj))
return NULL;
}
else return NULL;
dsigRefCtx = xmlSecDSigReferenceCtxPtr_get(dsigRefCtx_obj);
buf = xmlSecDSigReferenceCtxGetPreDigestBuffer(dsigRefCtx);
return (wrap_xmlSecBufferPtr(buf));
}
示例6: return
PyObject *xmlsec_PtrListInitialize(PyObject *self, PyObject *args) {
PyObject *list_obj, *id_obj;
xmlSecPtrListPtr list;
xmlSecPtrListId id;
if (CheckArgs(args, "OO:ptrListInitialize")) {
if(!PyArg_ParseTuple(args, (char *) "OO:ptrListInitialize",
&list_obj, &id_obj))
return NULL;
}
else return NULL;
list = xmlSecPtrListPtr_get(list_obj);
id = xmlSecPtrListId_get(id_obj);
return (wrap_int(xmlSecPtrListInitialize(list, id)));
}
示例7: RunTest2
int RunTest2(void* pTestProject, int nParams, const char* params[])
{
if (pTestProject == NULL)
{
ASSERT(false);
return 2;
}
bool fOk = CheckArgs(nParams, params);
if (!fOk)
return 1;
Runner runner;
runner.SetProject((ITestProject*)pTestProject);
return DoRun(runner);
}
示例8: xmlSecPtrListRemove
PyObject *xmlsec_PtrListRemove(PyObject *self, PyObject *args) {
PyObject *list_obj;
xmlSecPtrListPtr list;
xmlSecSize pos;
int ret;
if (CheckArgs(args, "OI:ptrListRemove")) {
if (!PyArg_ParseTuple(args, "Oi:ptrListRemove", &list_obj, &pos))
return NULL;
}
else return NULL;
list = xmlSecPtrListPtr_get(list_obj);
ret = xmlSecPtrListRemove(list, pos);
return (wrap_int(ret));
}
示例9: xmlSecDSigCtxFinalize
PyObject *xmlsec_DSigCtxFinalize(PyObject *self, PyObject *args) {
PyObject *dsigCtx_obj;
xmlSecDSigCtxPtr dsigCtx;
if (CheckArgs(args, "O:dsigCtxFinalize")) {
if (!PyArg_ParseTuple(args, "O:dsigCtxFinalize", &dsigCtx_obj))
return NULL;
}
else return NULL;
dsigCtx = xmlSecDSigCtxPtr_get(dsigCtx_obj);
xmlSecDSigCtxFinalize(dsigCtx);
Py_INCREF(Py_None);
return (Py_None);
}
示例10: return
PyObject *xmlsec_DSigCtxInitialize(PyObject *self, PyObject *args) {
PyObject *dsigCtx_obj, *mngr_obj;
xmlSecDSigCtxPtr dsigCtx;
xmlSecKeysMngrPtr mngr = NULL;
if (CheckArgs(args, "Oo:dsigCtxInitialize")) {
if (!PyArg_ParseTuple(args, "OO:dsigCtxInitialize", &dsigCtx_obj,
&mngr_obj))
return NULL;
}
else return NULL;
dsigCtx = xmlSecDSigCtxPtr_get(dsigCtx_obj);
mngr = xmlSecKeysMngrPtr_get(mngr_obj);
return (wrap_int(xmlSecDSigCtxInitialize(dsigCtx, mngr)));
}
示例11: return
PyObject *xmlsec_TmplSignatureGetC14NMethodNode(PyObject *self, PyObject *args) {
PyObject * signNode_obj;
xmlNodePtr signNode;
xmlNodePtr node;
if (CheckArgs(args, "O:tmplSignatureGetC14NMethodNode")) {
if (!PyArg_ParseTuple(args, "O:tmplSignatureGetC14NMethodNode",
&signNode_obj))
return NULL;
}
else return NULL;
signNode = xmlNodePtr_get(signNode_obj);
node = xmlSecTmplSignatureGetC14NMethodNode(signNode);
return (wrap_xmlNodePtr(node));
}
示例12: return
PyObject *xmlsec_KeyInfoCtxCopyUserPref(PyObject *self, PyObject *args) {
PyObject *dst_obj, *src_obj;
xmlSecKeyInfoCtxPtr dst;
xmlSecKeyInfoCtxPtr src;
if (CheckArgs(args, "OO:keyInfoCtxCopyUserPref")) {
if (!PyArg_ParseTuple(args, "OO:keyInfoCtxCopyUserPref",
&dst_obj, &src_obj))
return NULL;
}
else return NULL;
dst = xmlSecKeyInfoCtxPtr_get(dst_obj);
src = xmlSecKeyInfoCtxPtr_get(src_obj);
return (wrap_int(xmlSecKeyInfoCtxCopyUserPref(dst, src)));
}
示例13: return
PyObject *xmlsec_DSigReferenceCtxProcessNode(PyObject *self, PyObject *args) {
PyObject *dsigRefCtx_obj, *node_obj;
xmlSecDSigReferenceCtxPtr dsigRefCtx;
xmlNodePtr node;
if (CheckArgs(args, "OO:dsigReferenceCtxProcessNode")) {
if(!PyArg_ParseTuple(args, (char *) "OO:dsigReferenceCtxProcessNode",
&dsigRefCtx_obj, &node_obj))
return NULL;
}
else return NULL;
dsigRefCtx = xmlSecDSigReferenceCtxPtr_get(dsigRefCtx_obj);
node = xmlNodePtr_get(node_obj);
return (wrap_int(xmlSecDSigReferenceCtxProcessNode(dsigRefCtx, node)));
}
示例14: xmlSecDSigReferenceCtxDestroy
PyObject *xmlsec_DSigReferenceCtxDestroy(PyObject *self, PyObject *args) {
PyObject *dsigRefCtx_obj;
xmlSecDSigReferenceCtxPtr dsigRefCtx;
if (CheckArgs(args, "O:dsigReferenceCtxDestroy")) {
if(!PyArg_ParseTuple(args, (char *) "O:dsigReferenceCtxDestroy",
&dsigRefCtx_obj))
return NULL;
}
else return NULL;
dsigRefCtx = xmlSecDSigReferenceCtxPtr_get(dsigRefCtx_obj);
xmlSecDSigReferenceCtxDestroy(dsigRefCtx);
Py_INCREF(Py_None);
return (Py_None);
}
示例15: Py_BuildValue
PyObject *xmlSecTransformCtx_getattr(PyObject *self, PyObject *args) {
PyObject *transformCtx_obj;
xmlSecTransformCtxPtr transformCtx;
const char *attr;
if (CheckArgs(args, "OS:transformCtxGetAttr")) {
if (!PyArg_ParseTuple(args, "Os:transformCtxGetAttr",
&transformCtx_obj, &attr))
return NULL;
}
else return NULL;
transformCtx = xmlSecTransformCtxPtr_get(transformCtx_obj);
if (!strcmp(attr, "__members__"))
return Py_BuildValue("[sssssssssss]", "flags",
"flags2", "enabledUris", "enabledTransforms",
"preExecCallback", "result", "status", "uri",
"xptrExpr", "first", "last");
if (!strcmp(attr, "flags"))
return (wrap_int(transformCtx->flags));
if (!strcmp(attr, "flags2"))
return (wrap_int(transformCtx->flags2));
if (!strcmp(attr, "enabledUris"))
return (wrap_int(transformCtx->enabledUris));
if (!strcmp(attr, "enabledTransforms"))
return (wrap_xmlSecPtrListPtr(&(transformCtx->enabledTransforms)));
if (!strcmp(attr, "preExecCallback"))
return PyCObject_FromVoidPtr((void *) transformCtx->preExecCallback, NULL);
if (!strcmp(attr, "result"))
return (wrap_xmlSecBufferPtr(transformCtx->result));
if (!strcmp(attr, "status"))
return (wrap_int(transformCtx->status));
if (!strcmp(attr, "uri"))
return (wrap_xmlCharPtr(transformCtx->uri));
if (!strcmp(attr, "xptrExpr"))
return (wrap_xmlCharPtr(transformCtx->xptrExpr));
if (!strcmp(attr, "first"))
return (wrap_xmlSecTransformPtr(transformCtx->first));
if (!strcmp(attr, "last"))
return (wrap_xmlSecTransformPtr(transformCtx->last));
Py_INCREF(Py_None);
return (Py_None);
}