summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-10-19 18:30:01 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-10-19 18:30:01 (GMT)
commit01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49 (patch)
tree5d3a030a1249c41d7b2f347139737156b341a2a5 /Include
parent95cf84a4f3bd6b679e5c632512d02008b5ff8f46 (diff)
downloadcpython-01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49.zip
cpython-01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49.tar.gz
cpython-01a74b2fa1b7eef7e4c4f575e353662eeb6e3b49.tar.bz2
Make CObjects mutable. Fixes #477441.
Diffstat (limited to 'Include')
-rw-r--r--Include/cobject.h3
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