summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-17 23:11:17 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-17 23:11:17 (GMT)
commitb2a57722a8ed9ba035707a50023105cdbfcfdaae (patch)
tree2d66a8b55a95b69eb1636c41ba4c0bab821769ae /Include
parentaac8c58f0b053fba8ae8b042bcc3afef47fed943 (diff)
downloadcpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.zip
cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.tar.gz
cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.tar.bz2
It turns out that some calls return AEDesc records that are "borrowed",
the AEDesc data shouldn't be disposed when the Python object is. Added a C call AEDesc_NewBorrowed() to create these objects and a Python method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
Diffstat (limited to 'Include')
-rw-r--r--Include/pymactoolbox.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pymactoolbox.h b/Include/pymactoolbox.h
index 16f7352..2286ebe 100644
--- a/Include/pymactoolbox.h
+++ b/Include/pymactoolbox.h
@@ -106,6 +106,7 @@ PyObject *PyMac_BuildFSRef(FSRef *); /* Convert FSRef to PyObject */
/* AE exports */
extern PyObject *AEDesc_New(AppleEvent *); /* XXXX Why passed by address?? */
+extern PyObject *AEDesc_NewBorrowed(AppleEvent *);
extern int AEDesc_Convert(PyObject *, AppleEvent *);
/* Cm exports */