| |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Partial binding to CoreFoundation. At the moment only CFString is supported. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Synopsis | |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| types | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type UInt8 = Word8 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type UInt16 = Word16 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type UInt32 = Word32 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type UInt64 = Word64 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type SInt8 = Int8 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type SInt16 = Int16 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type SInt32 = Int32 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type SInt64 = Int64 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type OSErr = SInt16 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type OSStatus = SInt32 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type UniChar = Char | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type CFIndex = SInt32 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type ItemCount = UInt32 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type ByteCount = UInt32 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type CFDataRef = Ptr CFData | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type CFStringRef = Ptr CFString | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type CFAllocatorRef = Ptr CFAllocator | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type Boolean = Bool | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type Float32 = Float | |||||||||||||||||||||||||||||||||||||||||||||||||||
| type Float64 = Double | |||||||||||||||||||||||||||||||||||||||||||||||||||
| CFString | |||||||||||||||||||||||||||||||||||||||||||||||||||
| newCFString :: String -> IO CFStringRef | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Creates a new CFString. You have to release it manually. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| releaseCFString :: CFStringRef -> IO () | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Manually releasing a CFString. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| peekCFString :: CFStringRef -> IO String | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Peeks a CFString. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| withCFString :: String -> (CFStringRef -> IO a) -> IO a | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Safe passing of a CFString to the OS (releases it afterwards). | |||||||||||||||||||||||||||||||||||||||||||||||||||
| OSStatus | |||||||||||||||||||||||||||||||||||||||||||||||||||
| osStatusString :: OSStatus -> String | |||||||||||||||||||||||||||||||||||||||||||||||||||
| osStatusError :: OSStatus -> IO a | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Produced by Haddock version 2.4.1 |