summaryrefslogtreecommitdiffstats
path: root/Include/pymactoolbox.h
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-11-05 14:39:22 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-11-05 14:39:22 (GMT)
commit537a69fe66b10614b11b129d07da146f30801717 (patch)
tree7dc192e0c60c4aecb6b22eee77503f46eb3bbbf4 /Include/pymactoolbox.h
parent80c85d80c4c0ae7ebbd3fb650c23346c391edb7b (diff)
downloadcpython-537a69fe66b10614b11b129d07da146f30801717.zip
cpython-537a69fe66b10614b11b129d07da146f30801717.tar.gz
cpython-537a69fe66b10614b11b129d07da146f30801717.tar.bz2
Make the CoreFoundation object _New and _Convert routines available to other modules. Idea by Donovan Preston, implementaion by me.
Diffstat (limited to 'Include/pymactoolbox.h')
-rw-r--r--Include/pymactoolbox.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Include/pymactoolbox.h b/Include/pymactoolbox.h
index 9c7a1dc..5313d91 100644
--- a/Include/pymactoolbox.h
+++ b/Include/pymactoolbox.h
@@ -15,6 +15,12 @@
#include <Lists.h>
#include <Movies.h>
#include <Errors.h>
+#include <CFBase.h>
+#include <CFArray.h>
+#include <CFData.h>
+#include <CFDictionary.h>
+#include <CFString.h>
+#include <CFURL.h>
#else
#include <Carbon/Carbon.h>
#include <QuickTime/QuickTime.h>
@@ -167,6 +173,24 @@ extern PyObject *WinObj_New(WindowPtr);
extern int WinObj_Convert(PyObject *, WindowPtr *);
extern PyObject *WinObj_WhichWindow(WindowPtr);
+/* CF exports */
+extern PyObject *CFTypeRefObj_New(CFTypeRef);
+extern int CFTypeRefObj_Convert(PyObject *, CFTypeRef *);
+extern PyObject *CFStringRefObj_New(CFStringRef);
+extern int CFStringRefObj_Convert(PyObject *, CFStringRef *);
+extern PyObject *CFMutableStringRefObj_New(CFMutableStringRef);
+extern int CFMutableStringRefObj_Convert(PyObject *, CFMutableStringRef *);
+extern PyObject *CFArrayRefObj_New(CFArrayRef);
+extern int CFArrayRefObj_Convert(PyObject *, CFArrayRef *);
+extern PyObject *CFMutableArrayRefObj_New(CFMutableArrayRef);
+extern int CFMutableArrayRefObj_Convert(PyObject *, CFMutableArrayRef *);
+extern PyObject *CFDictionaryRefObj_New(CFDictionaryRef);
+extern int CFDictionaryRefObj_Convert(PyObject *, CFDictionaryRef *);
+extern PyObject *CFMutableDictionaryRefObj_New(CFMutableDictionaryRef);
+extern int CFMutableDictionaryRefObj_Convert(PyObject *, CFMutableDictionaryRef *);
+extern PyObject *CFURLRefObj_New(CFURLRef);
+extern int CFURLRefObj_Convert(PyObject *, CFURLRef *);
+extern int OptionalCFURLRefObj_Convert(PyObject *, CFURLRef *);
#ifdef __cplusplus
}