commit | 01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sun Oct 19 18:30:01 2003 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sun Oct 19 18:30:01 2003 +0000 |
tree | 5d3a030a1249c41d7b2f347139737156b341a2a5 | |
parent | 95cf84a4f3bd6b679e5c632512d02008b5ff8f46 [diff] [blame] |
Make CObjects mutable. Fixes #477441.
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 @@ /* 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