summaryrefslogtreecommitdiff
path: root/Mac/Modules/cf/pycfbridge.h
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-05-05 21:48:12 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-05-05 21:48:12 +0000
commitefaffae8f6f6f0d1482e6931f851b1c7264c554d (patch)
treeca7a7d0d134cde187cc446ed54194fa510109904 /Mac/Modules/cf/pycfbridge.h
parent46c04e140cf26d1b44935c28c6f15ea467400d22 (diff)
downloadcpython-git-efaffae8f6f6f0d1482e6931f851b1c7264c554d.tar.gz
First steps towards a generalized converter of Python object
hierarchies to CoreFoundation object hierarchies and vice versa.
Diffstat (limited to 'Mac/Modules/cf/pycfbridge.h')
-rw-r--r--Mac/Modules/cf/pycfbridge.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Mac/Modules/cf/pycfbridge.h b/Mac/Modules/cf/pycfbridge.h
new file mode 100644
index 0000000000..3377d5dcb1
--- /dev/null
+++ b/Mac/Modules/cf/pycfbridge.h
@@ -0,0 +1,11 @@
+extern PyObject *PyCF_CF2Python(CFTypeRef src);
+extern PyObject *PyCF_CF2Python_sequence(CFArrayRef src);
+extern PyObject *PyCF_CF2Python_mapping(CFTypeRef src);
+extern PyObject *PyCF_CF2Python_simple(CFTypeRef src);
+extern PyObject *PyCF_CF2Python_string(CFStringRef src);
+
+extern int PyCF_Python2CF(PyObject *src, CFTypeRef *dst);
+extern int PyCF_Python2CF_sequence(PyObject *src, CFArrayRef *dst);
+extern int PyCF_Python2CF_mapping(PyObject *src, CFDictionaryRef *dst);
+extern int PyCF_Python2CF_simple(PyObject *src, CFTypeRef *dst);
+extern int PyCF_Python2CF_string(PyObject *src, CFStringRef *dst); \ No newline at end of file