deimos.python.cobject

Mirror cobject.h

C objects to be exported from one extension module to another.

C objects are used for communication between extension modules. They provide a way for an extension module to export a C interface to other extension modules, so that extension modules can use the Python import mechanism to link to one another.

Note CObjects are pending deprecation in 2.7 and gone in 3.2. It is recommended you switch all use of CObjects to capsules.

Members

Functions

PyCObject_AsVoidPtr
void* PyCObject_AsVoidPtr(PyObject*)

Availaibility: 2.*, 3.0, 3.1

PyCObject_Check
int PyCObject_Check(PyObject* op)

Availaibility: 2.*, 3.0, 3.1

PyCObject_FromVoidPtr
PyObject* PyCObject_FromVoidPtr(void* cobj, void function(void*) destruct)

Availaibility: 2.*, 3.0, 3.1

PyCObject_FromVoidPtrAndDesc
PyObject* PyCObject_FromVoidPtrAndDesc(void* cobj, void* desc, void function(void*, void*) destruct)

Availaibility: 2.*, 3.0, 3.1

PyCObject_GetDesc
void* PyCObject_GetDesc(PyObject*)

Availaibility: 2.*, 3.0, 3.1

PyCObject_Import
void* PyCObject_Import(const(char)* module_name, const(char)* cobject_name)

Availaibility: 2.*, 3.0, 3.1

PyCObject_SetVoidPtr
int PyCObject_SetVoidPtr(PyObject* self, void* cobj)

Availaibility: 2.*, 3.0, 3.1

Structs

PyCObject
struct PyCObject

subclass of PyObject. Availaibility: 2.6, 2.7, 3.0, 3.1

See Also

<a href="pycapsule.html"> pycapsule.d </a>
<a href="http://docs.python.org/c-api/capsule.html"> Capsules </a>

Meta