Commit f34a8bce authored by Jack Jansen's avatar Jack Jansen

Moved CoreFoundation type support to bgen/macsupport.

parent 286e838f
...@@ -69,8 +69,6 @@ ThemeDragSoundKind = OSTypeType("ThemeDragSoundKind") ...@@ -69,8 +69,6 @@ ThemeDragSoundKind = OSTypeType("ThemeDragSoundKind")
ThemeBackgroundKind = Type("ThemeBackgroundKind", "l") ThemeBackgroundKind = Type("ThemeBackgroundKind", "l")
ThemeMetric = Type("ThemeMetric", "l") ThemeMetric = Type("ThemeMetric", "l")
RGBColor = OpaqueType("RGBColor", "QdRGB") RGBColor = OpaqueType("RGBColor", "QdRGB")
CFStringRef = OpaqueByValueType("CFStringRef", "CFStringRefObj")
CFMutableStringRef = OpaqueByValueType("CFMutableStringRef", "CFMutableStringRefObj")
TruncCode = Type("TruncCode", "h") TruncCode = Type("TruncCode", "h")
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
from macsupport import * from macsupport import *
CFStringRef = OpaqueByValueType('CFStringRef', 'CFStringRefObj')
IBNibRef = OpaqueByValueType('IBNibRef', 'IBNibRefObj') IBNibRef = OpaqueByValueType('IBNibRef', 'IBNibRefObj')
#CFBundleRef = OpaqueByValueType('CFBundleRef') #CFBundleRef = OpaqueByValueType('CFBundleRef')
......
...@@ -36,7 +36,6 @@ MenuItemAttributes = Type("MenuItemAttributes", "l") ...@@ -36,7 +36,6 @@ MenuItemAttributes = Type("MenuItemAttributes", "l")
unsigned_char = Type('unsigned char', 'b') unsigned_char = Type('unsigned char', 'b')
FMFontFamily = Type("FMFontFamily", "h") FMFontFamily = Type("FMFontFamily", "h")
FMFontStyle = Type("FMFontStyle", "h") FMFontStyle = Type("FMFontStyle", "h")
CFStringRef = OpaqueByValueType("CFStringRef", "CFStringRefObj")
UniChar = Type("UniChar", "h") UniChar = Type("UniChar", "h")
includestuff = includestuff + """ includestuff = includestuff + """
......
This diff is collapsed.
...@@ -125,7 +125,6 @@ OptRgnHandle = OpaqueByValueType("RgnHandle", "OptResObj") ...@@ -125,7 +125,6 @@ OptRgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
GWorldPtr = OpaqueByValueType("GWorldPtr", "GWorldObj") GWorldPtr = OpaqueByValueType("GWorldPtr", "GWorldObj")
OptGWorldPtr = OpaqueByValueType("GWorldPtr", "OptGWorldObj") OptGWorldPtr = OpaqueByValueType("GWorldPtr", "OptGWorldObj")
MlteInBuffer = VarInputBufferType('void *', 'ByteCount', 'l') MlteInBuffer = VarInputBufferType('void *', 'ByteCount', 'l')
CFStringRef = OpaqueByValueType("CFStringRef", "CFStringRefObj")
OptFSSpecPtr = OpaqueByValueType("FSSpec *", "OptFSSpecPtr") OptFSSpecPtr = OpaqueByValueType("FSSpec *", "OptFSSpecPtr")
OptRectPtr = OpaqueByValueType("Rect *", "OptRectPtr") OptRectPtr = OpaqueByValueType("Rect *", "OptRectPtr")
......
...@@ -51,7 +51,6 @@ ScrollWindowOptions = Type("ScrollWindowOptions", "l") ...@@ -51,7 +51,6 @@ ScrollWindowOptions = Type("ScrollWindowOptions", "l")
WindowPartCode = Type("WindowPartCode", "h") WindowPartCode = Type("WindowPartCode", "h")
WindowDefPartCode = Type("WindowDefPartCode", "h") WindowDefPartCode = Type("WindowDefPartCode", "h")
WindowModality = Type("WindowModality", "l") WindowModality = Type("WindowModality", "l")
CFStringRef = OpaqueByValueType("CFStringRef", "CFStringRefObj")
GDHandle = OpaqueByValueType("GDHandle", "ResObj") GDHandle = OpaqueByValueType("GDHandle", "ResObj")
WindowConstrainOptions = Type("WindowConstrainOptions", "l") WindowConstrainOptions = Type("WindowConstrainOptions", "l")
......
...@@ -90,6 +90,17 @@ Point_ptr = OpaqueType("Point", "PyMac_BuildPoint", "PyMac_GetPoint") ...@@ -90,6 +90,17 @@ Point_ptr = OpaqueType("Point", "PyMac_BuildPoint", "PyMac_GetPoint")
EventRecord = OpaqueType("EventRecord", "PyMac_BuildEventRecord", "PyMac_GetEventRecord") EventRecord = OpaqueType("EventRecord", "PyMac_BuildEventRecord", "PyMac_GetEventRecord")
EventRecord_ptr = EventRecord 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 # OSErr is special because it is turned into an exception
# (Could do this with less code using a variant of mkvalue("O&")?) # (Could do this with less code using a variant of mkvalue("O&")?)
class OSErrType(Type): class OSErrType(Type):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment