1 #include <bindings.dsl.h>
2 #include <CoreFoundation/CFBase.h>
4 module Bindings.CoreFoundation.CFBase where
17 #synonym_t Float32, CFloat
18 #synonym_t Float64, CDouble
20 #synonym_t StringPtr , Ptr CUChar
21 #synonym_t ConstStringPtr , Ptr CUChar
22 #synonym_t Str255 , Ptr CUChar
23 #synonym_t ConstStr255Param, Ptr CUChar
25 #integral_t RegionCode
35 #globalvar kCFCoreFoundationVersionNumber, CDouble
36 #fractional kCFCoreFoundationVersionNumber10_0
37 #fractional kCFCoreFoundationVersionNumber10_0_3
38 #fractional kCFCoreFoundationVersionNumber10_1
39 #fractional kCFCoreFoundationVersionNumber10_1_1
40 #fractional kCFCoreFoundationVersionNumber10_1_2
41 #fractional kCFCoreFoundationVersionNumber10_1_3
42 #fractional kCFCoreFoundationVersionNumber10_1_4
43 #fractional kCFCoreFoundationVersionNumber10_2
44 #fractional kCFCoreFoundationVersionNumber10_2_1
45 #fractional kCFCoreFoundationVersionNumber10_2_2
46 #fractional kCFCoreFoundationVersionNumber10_2_3
47 #fractional kCFCoreFoundationVersionNumber10_2_4
48 #fractional kCFCoreFoundationVersionNumber10_2_5
49 #fractional kCFCoreFoundationVersionNumber10_2_6
50 #fractional kCFCoreFoundationVersionNumber10_2_7
51 #fractional kCFCoreFoundationVersionNumber10_2_8
52 #fractional kCFCoreFoundationVersionNumber10_3
53 #fractional kCFCoreFoundationVersionNumber10_3_1
54 #fractional kCFCoreFoundationVersionNumber10_3_2
55 #fractional kCFCoreFoundationVersionNumber10_3_3
56 #fractional kCFCoreFoundationVersionNumber10_3_4
57 #fractional kCFCoreFoundationVersionNumber10_3_5
58 #fractional kCFCoreFoundationVersionNumber10_3_6
59 #fractional kCFCoreFoundationVersionNumber10_3_7
60 #fractional kCFCoreFoundationVersionNumber10_3_8
61 #fractional kCFCoreFoundationVersionNumber10_3_9
62 #fractional kCFCoreFoundationVersionNumber10_4
63 #fractional kCFCoreFoundationVersionNumber10_4_1
64 #fractional kCFCoreFoundationVersionNumber10_4_2
65 #fractional kCFCoreFoundationVersionNumber10_4_3
66 #fractional kCFCoreFoundationVersionNumber10_4_4_Intel
67 #fractional kCFCoreFoundationVersionNumber10_4_4_PowerPC
68 #fractional kCFCoreFoundationVersionNumber10_4_5_Intel
69 #fractional kCFCoreFoundationVersionNumber10_4_5_PowerPC
70 #fractional kCFCoreFoundationVersionNumber10_4_6_Intel
71 #fractional kCFCoreFoundationVersionNumber10_4_6_PowerPC
72 #fractional kCFCoreFoundationVersionNumber10_4_7
73 #fractional kCFCoreFoundationVersionNumber10_4_8
74 #fractional kCFCoreFoundationVersionNumber10_4_9
75 #fractional kCFCoreFoundationVersionNumber10_4_10
76 #fractional kCFCoreFoundationVersionNumber10_4_11
79 #integral_t CFOptionFlags
80 #integral_t CFHashCode
83 #synonym_t CFTypeRef, Ptr ()
86 #synonym_t CFStringRef , Ptr <__CFString>
87 #synonym_t CFMutableStringRef, Ptr <__CFString>
89 #synonym_t CFPropertyListRef , <CFTypeRef>
90 #num kCFCompareLessThan
91 #num kCFCompareEqualTo
92 #num kCFCompareGreaterThan
93 #synonym_t CFComparisonResult, <CFIndex>
95 #callback CFComparatorFunction, Ptr () -> Ptr () -> Ptr () -> IO <CFComparisonResult>
100 # field location, <CFIndex>
101 # field length , <CFIndex>
104 #if MAC_OS_X_VERSION_10_2 <= MAC_OS_X_VERSION_MAX_ALLOWED
106 # synonym_t CFNullRef , Ptr <__CFNull>
107 # ccall CFNullGetTypeID, IO <CFTypeID>
108 # cinline kCFNull , IO <CFNullRef>
111 #opaque_t __CFAllocator
112 #synonym_t CFAllocatorRef , Ptr <__CFAllocator>
113 #cinline kCFAllocatorDefault , IO <CFAllocatorRef>
114 #cinline kCFAllocatorSystemDefault, IO <CFAllocatorRef>
115 #cinline kCFAllocatorMalloc , IO <CFAllocatorRef>
116 #cinline kCFAllocatorMallocZone , IO <CFAllocatorRef>
117 #cinline kCFAllocatorNull , IO <CFAllocatorRef>
118 #cinline kCFAllocatorUseContext , IO <CFAllocatorRef>
120 #callback CFAllocatorRetainCallBack , Ptr () -> IO (Ptr ())
121 #callback CFAllocatorReleaseCallBack , Ptr () -> IO ()
122 #callback CFAllocatorCopyDescriptionCallBack, Ptr () -> IO <CFStringRef>
123 #callback CFAllocatorAllocateCallBack , <CFIndex> -> <CFOptionFlags> -> Ptr () -> IO (Ptr ())
124 #callback CFAllocatorReallocateCallBack , Ptr () -> <CFIndex> -> <CFOptionFlags> -> Ptr () -> IO (Ptr ())
125 #callback CFAllocatorDeallocateCallBack , Ptr () -> Ptr () -> IO ()
126 #callback CFAllocatorPreferredSizeCallBack , <CFIndex> -> <CFOptionFlags> -> Ptr () -> IO <CFIndex>
128 #starttype CFAllocatorContext
129 # field version , <CFIndex>
130 # field info , Ptr ()
131 # field retain , <CFAllocatorRetainCallBack>
132 # field release , <CFAllocatorReleaseCallBack>
133 # field copyDescription, <CFAllocatorCopyDescriptionCallBack>
134 # field allocate , <CFAllocatorAllocateCallBack>
135 # field reallocate , <CFAllocatorReallocateCallBack>
136 # field deallocate , <CFAllocatorDeallocateCallBack>
137 # field preferredSize , <CFAllocatorPreferredSizeCallBack>
140 #ccall CFAllocatorGetTypeID , IO <CFTypeID>
141 #ccall CFAllocatorSetDefault, <CFAllocatorRef> -> IO ()
142 #ccall CFAllocatorGetDefault, IO <CFAllocatorRef>
143 #ccall CFAllocatorCreate , <CFAllocatorRef> -> Ptr <CFAllocatorContext> -> IO <CFAllocatorRef>
144 #ccall CFAllocatorAllocate , <CFAllocatorRef> -> <CFIndex> -> <CFOptionFlags> -> IO (Ptr ())
145 #ccall CFAllocatorReallocate, <CFAllocatorRef> -> Ptr () -> <CFIndex> -> <CFOptionFlags> -> IO (Ptr ())
146 #ccall CFAllocatorDeallocate, <CFAllocatorRef> -> Ptr () -> IO ()
147 #ccall CFAllocatorGetPreferredSizeForSize, <CFAllocatorRef> -> <CFIndex> -> <CFOptionFlags> -> IO <CFIndex>
148 #ccall CFAllocatorGetContext, <CFAllocatorRef> -> Ptr <CFAllocatorContext> -> IO ()
150 #ccall CFGetTypeID , <CFTypeRef> -> IO <CFTypeID>
151 #ccall CFCopyTypeIDDescription, <CFTypeID> -> IO <CFStringRef>
152 #ccall CFRetain , <CFTypeRef> -> IO <CFTypeRef>
153 #ccall CFRelease , <CFTypeRef> -> IO ()
154 #ccall CFGetRetainCount , <CFTypeRef> -> IO <CFIndex>
155 #ccall CFMakeCollectable, <CFTypeRef> -> IO <CFTypeRef>
156 #ccall CFEqual , <CFTypeRef> -> <CFTypeRef> -> IO <Boolean>
157 #ccall CFHash , <CFTypeRef> -> IO <CFHashCode>
158 #ccall CFCopyDescription, <CFTypeRef> -> IO <CFStringRef>
159 #ccall CFGetAllocator , <CFTypeRef> -> IO <CFAllocatorRef>