diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cobject.h b/Include/cobject.h index ccf8b32..ad23ac8 100644 --- a/Include/cobject.h +++ b/Include/cobject.h @@ -45,6 +45,9 @@ PyAPI_FUNC(void *) PyCObject_GetDesc(PyObject *); /* Import a pointer to a C object from a module using a PyCObject. */ 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); + #ifdef __cplusplus } #endif |