diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-17 23:11:17 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-17 23:11:17 +0000 |
commit | b2a57722a8ed9ba035707a50023105cdbfcfdaae (patch) | |
tree | 2d66a8b55a95b69eb1636c41ba4c0bab821769ae /Include/pymactoolbox.h | |
parent | Various markup changes. (diff) | |
download | cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.tar.gz cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.tar.bz2 cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.zip |
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/pymactoolbox.h')
-rw-r--r-- | Include/pymactoolbox.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pymactoolbox.h b/Include/pymactoolbox.h index 16f73523f16..2286ebe1a99 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 */ |