summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-22 20:48:48 (GMT)
committerGuido van Rossum <guido@python.org>1997-01-22 20:48:48 (GMT)
commite0e696282feea175d82920e0cf13e90bd7a9252e (patch)
tree5212693bae144e7fd978a7be79801d0a248fb37b /Include
parent43d287ad7383d3194153b6dba96912437fc6ba17 (diff)
downloadcpython-e0e696282feea175d82920e0cf13e90bd7a9252e.zip
cpython-e0e696282feea175d82920e0cf13e90bd7a9252e.tar.gz
cpython-e0e696282feea175d82920e0cf13e90bd7a9252e.tar.bz2
Added PyCObject_Import.
Diffstat (limited to 'Include')
-rw-r--r--Include/cobject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/cobject.h b/Include/cobject.h
index db2ce23..672e029 100644
--- a/Include/cobject.h
+++ b/Include/cobject.h
@@ -62,6 +62,10 @@ PyCObject_FromVoidPtr Py_PROTO((void *cobj, void (*destruct)(void*)));
extern void *
PyCObject_AsVoidPtr Py_PROTO((PyObject *));
+/* Import a pointer to a C object from a module using a PyCObject. */
+extern void *
+PyCObject_Import Py_PROTO((char *module_name, char *cobject_name));
+
#ifdef __cplusplus
}
#endif