summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-22 23:30:49 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-22 23:30:49 (GMT)
commitf34a8bced262ad63564336de128c32b72eefec44 (patch)
tree8f9f1bc799045428888abfa7b44327c187d6660b /Tools
parent286e838f22ebb2cc40fcb7aca9cac87585580843 (diff)
downloadcpython-f34a8bced262ad63564336de128c32b72eefec44.zip
cpython-f34a8bced262ad63564336de128c32b72eefec44.tar.gz
cpython-f34a8bced262ad63564336de128c32b72eefec44.tar.bz2
Moved CoreFoundation type support to bgen/macsupport.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/macsupport.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py
index bd38f02..049354a 100644
--- a/Tools/bgen/bgen/macsupport.py
+++ b/Tools/bgen/bgen/macsupport.py
@@ -90,6 +90,17 @@ Point_ptr = OpaqueType("Point", "PyMac_BuildPoint", "PyMac_GetPoint")
EventRecord = OpaqueType("EventRecord", "PyMac_BuildEventRecord", "PyMac_GetEventRecord")
EventRecord_ptr = EventRecord
+# CoreFoundation datatypes
+CFTypeRef = OpaqueByValueType("CFTypeRef", "CFTypeRefObj")
+CFStringRef = OpaqueByValueType("CFStringRef", "CFStringRefObj")
+CFMutableStringRef = OpaqueByValueType("CFMutableStringRef", "CFMutableStringRefObj")
+CFArrayRef = OpaqueByValueType("CFArrayRef", "CFArrayRefObj")
+CFMutableArrayRef = OpaqueByValueType("CFMutableArrayRef", "CFMutableArrayRefObj")
+CFDictionaryRef = OpaqueByValueType("CFDictionaryRef", "CFDictionaryRefObj")
+CFMutableDictionaryRef = OpaqueByValueType("CFMutableDictionaryRef", "CFMutableDictionaryRefObj")
+CFURLRef = OpaqueByValueType("CFURLRef", "CFURLRefObj")
+OptionalCFURLRef = OpaqueByValueType("CFURLRef", "OptionalCFURLRefObj")
+
# OSErr is special because it is turned into an exception
# (Could do this with less code using a variant of mkvalue("O&")?)
class OSErrType(Type):