Home
last modified time | relevance | path

Searched refs:PyCapsule_New (Results 1 – 25 of 50) sorted by relevance

12

/external/libxml2/python/
Dtypes.c234 ret = PyCapsule_New((void *) doc, (char *) "xmlDocPtr", NULL); in libxml_xmlDocPtrWrap()
250 ret = PyCapsule_New((void *) node, (char *) "xmlNodePtr", NULL); in libxml_xmlNodePtrWrap()
266 ret = PyCapsule_New((void *) uri, (char *) "xmlURIPtr", NULL); in libxml_xmlURIPtrWrap()
282 ret = PyCapsule_New((void *) ns, (char *) "xmlNsPtr", NULL); in libxml_xmlNsPtrWrap()
298 ret = PyCapsule_New((void *) attr, (char *) "xmlAttrPtr", NULL); in libxml_xmlAttrPtrWrap()
314 ret = PyCapsule_New((void *) attr, (char *) "xmlAttributePtr", NULL); in libxml_xmlAttributePtrWrap()
330 ret = PyCapsule_New((void *) elem, (char *) "xmlElementPtr", NULL); in libxml_xmlElementPtrWrap()
346 ret = PyCapsule_New((void *) ctxt, (char *) "xmlXPathContextPtr", NULL); in libxml_xmlXPathContextPtrWrap()
362 ret = PyCapsule_New((void *)ctxt, (char *)"xmlXPathParserContextPtr", NULL); in libxml_xmlXPathParserContextPtrWrap()
379 ret = PyCapsule_New((void *) ctxt, (char *) "xmlParserCtxtPtr", NULL); in libxml_xmlParserCtxtPtrWrap()
[all …]
Dlibxml_wrap.h38 #ifndef PyCapsule_New
39 #define PyCapsule_New PyCObject_FromVoidPtrAndDesc macro
/external/llvm-project/mlir/include/mlir-c/Bindings/Python/
DInterop.h78 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(attribute), in mlirPythonAttributeToCapsule()
97 return PyCapsule_New(context.ptr, MLIR_PYTHON_CAPSULE_CONTEXT, NULL); in mlirPythonContextToCapsule()
114 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(loc), in mlirPythonLocationToCapsule()
132 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(module), in mlirPythonModuleToCapsule()
150 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(pm), in mlirPythonPassManagerToCapsule()
169 return PyCapsule_New(operation.ptr, MLIR_PYTHON_CAPSULE_OPERATION, NULL); in mlirPythonOperationToCapsule()
187 return PyCapsule_New(MLIR_PYTHON_GET_WRAPPED_POINTER(type), in mlirPythonTypeToCapsule()
/external/tensorflow/tensorflow/python/eager/
Dcustom_device_testutil.cc56 PyCapsule_New(arrived_flag, "flag", &CallDelete_Flag)); in PYBIND11_MODULE()
58 PyCapsule_New(executed_flag, "flag", &CallDelete_Flag)); in PYBIND11_MODULE()
64 PyCapsule_New(device, "TFE_CustomDevice", &CallDelete_Device)); in PYBIND11_MODULE()
65 tensorflow::Safe_PyObjectPtr device_info_capsule(PyCapsule_New( in PYBIND11_MODULE()
/external/tensorflow/tensorflow/compiler/xla/python/
Dcustom_call_for_test.pyx7 from cpython.pycapsule cimport PyCapsule_New
20 cpu_custom_call_targets[fn_name] = PyCapsule_New(fn, name, NULL)
/external/tensorflow/tensorflow/python/distribute/parallel_device/
Dpywrap_parallel_device.cc53 PyCapsule_New(device, "TFE_CustomDevice", &CallDelete_Device)); in PYBIND11_MODULE()
60 PyCapsule_New(device_info, "TFE_CustomDevice_DeviceInfo", in PYBIND11_MODULE()
/external/python/cpython2/Include/
Dpycapsule.h28 PyAPI_FUNC(PyObject *) PyCapsule_New(
/external/python/cpython3/Include/
Dpycapsule.h28 PyAPI_FUNC(PyObject *) PyCapsule_New(
/external/protobuf/python/google/protobuf/pyext/
Dmessage_module.cc111 PyCapsule_New(new ApiImplementation(), in INITFUNC()
/external/python/cffi/c/
Dfile_emulator.h74 ob_capsule = PyCapsule_New(f, "FILE", _close_file_capsule); in PyFile_AsFile()
/external/python/cpython2/Doc/includes/
Dcapsulethunk.h27 #define PyCapsule_New(pointer, name, destructor) \ macro
/external/python/cpython2/Modules/cjkcodecs/
Dcjkcodecs.h285 codecobj = PyCapsule_New((void *)codec, PyMultibyteCodec_CAPSULE_NAME, NULL); in getcodec()
310 PyCapsule_New((void *)h, PyMultibyteCodec_CAPSULE_NAME, NULL)); in register_maps()
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h290 codecobj = PyCapsule_New((void *)codec, PyMultibyteCodec_CAPSULE_NAME, NULL); in getcodec()
315 PyCapsule_New((void *)h, PyMultibyteCodec_CAPSULE_NAME, NULL)); in register_maps()
/external/python/cpython3/Doc/c-api/
Dcapsule.rst31 See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor
40 .. c:function:: PyObject* PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destr…
/external/python/cpython2/Doc/c-api/
Dcapsule.rst31 See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor
40 .. c:function:: PyObject* PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destr…
/external/python/cpython3/Objects/
Dcapsule.c44 PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destructor) in PyCapsule_New() function
/external/python/cpython2/Objects/
Dcapsule.c44 PyCapsule_New(void *pointer, const char *name, PyCapsule_Destructor destructor) in PyCapsule_New() function
/external/python/cpython2/PC/os2vacpp/
Dpython.def100 PyCapsule_New
/external/python/cpython2/Modules/_ctypes/
Dctypes.h466 (PyCapsule_New(pointer, name, capsule_destructor_ ## name))
/external/python/pybind11/include/pybind11/
Dpytypes.h1202 : object(PyCapsule_New(const_cast<void *>(value), name, destructor), stolen_t{}) { in object()
1209 : object(PyCapsule_New(const_cast<void*>(value), nullptr, destruct), stolen_t{}) { in capsule()
1215 m_ptr = PyCapsule_New(const_cast<void *>(value), nullptr, [](PyObject *o) { in capsule()
1229 m_ptr = PyCapsule_New(reinterpret_cast<void *>(destructor), nullptr, [](PyObject *o) { in capsule()
/external/python/cpython2/Doc/data/
Drefcounts.dat75 PyCapsule_New:PyObject*::+1:
76 PyCapsule_New:void*:pointer::
77 PyCapsule_New:const char *:name::
78 PyCapsule_New::void (* destructor)(PyObject* )::
/external/python/cpython2/Doc/howto/
Dcporting.rst228 * The name parameter passed in to :c:func:`PyCapsule_New` is ignored.
/external/python/cpython2/Modules/
DcStringIO.c769 v = PyCapsule_New(&CAPI, PycStringIO_CAPSULE_NAME, NULL); in initcStringIO()
/external/python/cpython3/PC/
Dpython3.def53 PyCapsule_New=python39.PyCapsule_New
/external/python/cpython3/Modules/_ctypes/
Dcallproc.c168 errobj = PyCapsule_New(space, CTYPES_CAPSULE_NAME_PYMEM, pymem_destructor); in _ctypes_get_errobj()
724 pa->keep = PyCapsule_New(pa->value.p, CTYPES_CAPSULE_NAME_PYMEM, pymem_destructor); in ConvParam()

12