Bang-0.1.0.5: A Drum Machine DSL for Haskell

Safe HaskellNone
LanguageHaskell2010

System.MacOSX.CoreFoundation

Description

Partial binding to CoreFoundation, as required for MIDI. At the moment only CFString is supported. In the future this module should grow into a separate entity.

Synopsis

Documentation

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).

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 UniChar = Char

type CFDataRef = Ptr CFData

type CFStringRef = Ptr CFString

type CFAllocatorRef = Ptr CFAllocator