]> gitweb @ CieloNegro.org - bindings-CoreFoundation.git/blob - Bindings/CoreFoundation/CFDictionary.hsc
CFString.h
[bindings-CoreFoundation.git] / Bindings / CoreFoundation / CFDictionary.hsc
1 #include <bindings.dsl.h>
2 #include <CoreFoundation/CFDictionary.h>
3
4 module Bindings.CoreFoundation.CFDictionary where
5 #strict_import
6 import Bindings.CoreFoundation.CFBase
7
8 #callback CFDictionaryRetainCallBack , <CFAllocatorRef> -> Ptr () -> IO (Ptr ())
9 #callback CFDictionaryReleaseCallBack, <CFAllocatorRef> -> Ptr () -> IO ()
10 #callback CFDictionaryCopyDescriptionCallBack, Ptr () -> IO <CFStringRef>
11 #callback CFDictionaryEqualCallBack  , Ptr () -> Ptr () -> IO <Boolean>
12 #callback CFDictionaryHashCallBack   , Ptr () -> IO <CFHashCode>
13 #starttype CFDictionaryKeyCallBacks
14 #  field version        , <CFIndex>
15 #  field retain         , <CFDictionaryRetainCallBack>
16 #  field release        , <CFDictionaryReleaseCallBack>
17 #  field copyDescription, <CFDictionaryCopyDescriptionCallBack>
18 #  field equal          , <CFDictionaryEqualCallBack>
19 #  field hash           , <CFDictionaryHashCallBack>
20 #stoptype
21
22 #cinline kCFTypeDictionaryKeyCallBacks      , IO (Ptr <CFDictionaryKeyCallBacks>)
23 #cinline kCFCopyStringDictionaryKeyCallBacks, IO (Ptr <CFDictionaryKeyCallBacks>)
24
25 #starttype CFDictionaryValueCallBacks
26 #  field version        , <CFIndex>
27 #  field retain         , <CFDictionaryRetainCallBack>
28 #  field release        , <CFDictionaryReleaseCallBack>
29 #  field copyDescription, <CFDictionaryCopyDescriptionCallBack>
30 #  field equal          , <CFDictionaryEqualCallBack>
31 #stoptype
32
33 #cinline kCFTypeDictionaryValueCallBacks, IO (Ptr <CFDictionaryValueCallBacks>)
34
35 #callback CFDictionaryApplierFunction, Ptr () -> Ptr () -> Ptr () -> IO ()
36
37 #opaque_t  __CFDictionary
38 #synonym_t CFDictionaryRef       , Ptr <__CFDictionary>
39 #synonym_t CFMutableDictionaryRef, Ptr <__CFDictionary>
40
41 #ccall CFDictionaryGetTypeID        , IO <CFTypeID>
42 #ccall CFDictionaryCreate           , <CFAllocatorRef> -> Ptr (Ptr ()) -> Ptr (Ptr ()) -> <CFIndex> -> Ptr <CFDictionaryKeyCallBacks> -> Ptr <CFDictionaryValueCallBacks> -> IO <CFDictionaryRef>
43 #ccall CFDictionaryCreateCopy       , <CFAllocatorRef> -> <CFDictionaryRef> -> IO <CFDictionaryRef>
44 #ccall CFDictionaryCreateMutable    , <CFAllocatorRef> -> <CFIndex> -> Ptr <CFDictionaryKeyCallBacks> -> Ptr <CFDictionaryValueCallBacks> -> IO <CFMutableDictionaryRef>
45 #ccall CFDictionaryCreateMutableCopy, <CFAllocatorRef> -> <CFIndex> -> <CFDictionaryRef> -> IO <CFMutableDictionaryRef>
46 #ccall CFDictionaryGetCount         , <CFDictionaryRef> -> IO <CFIndex>
47 #ccall CFDictionaryGetCountOfKey    , <CFDictionaryRef> -> Ptr () -> IO <CFIndex>
48 #ccall CFDictionaryGetCountOfValue  , <CFDictionaryRef> -> Ptr () -> IO <CFIndex>
49 #ccall CFDictionaryContainsKey      , <CFDictionaryRef> -> Ptr () -> IO <Boolean>
50 #ccall CFDictionaryContainsValue    , <CFDictionaryRef> -> Ptr () -> IO <Boolean>
51 #ccall CFDictionaryGetValue         , <CFDictionaryRef> -> Ptr () -> IO (Ptr ())
52 #ccall CFDictionaryGetValueIfPresent, <CFDictionaryRef> -> Ptr () -> Ptr (Ptr ()) -> IO <Boolean>
53 #ccall CFDictionaryGetKeysAndValues , <CFDictionaryRef> -> Ptr (Ptr ()) -> Ptr (Ptr ()) -> IO ()
54 #ccall CFDictionaryApplyFunction    , <CFDictionaryRef> -> <CFDictionaryApplierFunction> -> Ptr () -> IO ()
55 #ccall CFDictionaryAddValue         , <CFMutableDictionaryRef> -> Ptr () -> Ptr () -> IO ()
56 #ccall CFDictionarySetValue         , <CFMutableDictionaryRef> -> Ptr () -> Ptr () -> IO ()
57 #ccall CFDictionaryReplaceValue     , <CFMutableDictionaryRef> -> Ptr () -> Ptr () -> IO ()
58 #ccall CFDictionaryRemoveValue      , <CFMutableDictionaryRef> -> Ptr () -> IO ()
59 #ccall CFDictionaryRemoveAllValues  , <CFMutableDictionaryRef> -> IO ()