Bang-0.1.0.4: 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 Source

Creates a new CFString. You have to release it manually.

releaseCFString :: CFStringRef -> IO () Source

Manually releasing a CFString.

peekCFString :: CFStringRef -> IO String Source

Peeks a CFString.

withCFString :: String -> (CFStringRef -> IO a) -> IO a Source

Safe passing of a CFString to the OS (releases it afterwards).

type CFDataRef = Ptr CFData Source

type CFStringRef = Ptr CFString Source

type CFAllocatorRef = Ptr CFAllocator Source