diff options
Diffstat (limited to 'Include/cobject.h')
-rw-r--r-- | Include/cobject.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/cobject.h b/Include/cobject.h index 499dfad..4e24d7d 100644 --- a/Include/cobject.h +++ b/Include/cobject.h @@ -48,6 +48,15 @@ PyAPI_FUNC(void *) PyCObject_Import(char *module_name, char *cobject_name); /* Modify a C object. Fails (==0) if object has a destructor. */ PyAPI_FUNC(int) PyCObject_SetVoidPtr(PyObject *self, void *cobj); + +typedef struct { + PyObject_HEAD + void *cobject; + void *desc; + void (*destructor)(void *); +} PyCObject; + + #ifdef __cplusplus } #endif |