Searched refs:PyCObject (Results 1 – 7 of 7) sorted by relevance
22 PyCObject *self; in PyCObject_FromVoidPtr()28 self = PyObject_NEW(PyCObject, &PyCObject_Type); in PyCObject_FromVoidPtr()42 PyCObject *self; in PyCObject_FromVoidPtrAndDesc()54 self = PyObject_NEW(PyCObject, &PyCObject_Type); in PyCObject_FromVoidPtrAndDesc()73 return ((PyCObject *)self)->cobject; in PyCObject_AsVoidPtr()88 return ((PyCObject *)self)->desc; in PyCObject_GetDesc()117 PyCObject* cself = (PyCObject*)self; in PyCObject_SetVoidPtr()129 PyCObject_dealloc(PyCObject *self) in PyCObject_dealloc()152 sizeof(PyCObject), /*tp_basicsize*/
16 .. c:type:: PyCObject28 Return true if its argument is a :c:type:`PyCObject`.33 Create a :c:type:`PyCObject` from the ``void *`` *cobj*. The *destr* function39 Create a :c:type:`PyCObject` from the :c:type:`void \*` *cobj*. The *destr*46 Return the object :c:type:`void \*` that the :c:type:`PyCObject` *self* was52 Return the description :c:type:`void \*` that the :c:type:`PyCObject` *self* was58 Set the void pointer inside *self* to *cobj*. The :c:type:`PyCObject` must not
10 ? (((PyCObject *)capsule)->field) \16 ? (((PyCObject *)capsule)->field = value), 1 \116 PyCObject *cobject = (PyCObject *)object; in PyCapsule_Import()
83 } PyCObject; typedef
2265 :c:type:`PyCObject`, but it doesn't provide type safety. Evil code2267 :c:type:`PyCObject` from module A and somehow substituting it for the2268 :c:type:`PyCObject` in module B. Capsules know their own name,
6725 - Issue #7992: A replacement PyCObject API, PyCapsule, has been backported from
6455 PyCObject.