1 #include <bindings.dsl.h>
2 #include <CoreFoundation/CFArray.h>
4 module Bindings.CoreFoundation.CFArray where
6 import Bindings.CoreFoundation.CFBase
8 #callback CFArrayRetainCallBack , <CFAllocatorRef> -> Ptr () -> IO (Ptr ())
9 #callback CFArrayReleaseCallBack , <CFAllocatorRef> -> Ptr () -> IO ()
10 #callback CFArrayCopyDescriptionCallBack, Ptr () -> IO <CFStringRef>
11 #callback CFArrayEqualCallBack , Ptr () -> Ptr () -> IO <Boolean>
12 #starttype CFArrayCallBacks
13 # field version , <CFIndex>
14 # field retain , <CFArrayRetainCallBack>
15 # field release , <CFArrayReleaseCallBack>
16 # field copyDescription, <CFArrayEqualCallBack>
19 #cinline kCFTypeArrayCallBacks, IO (Ptr <CFArrayCallBacks>)
21 #callback CFArrayApplierFunction, Ptr () -> Ptr () -> IO ()
24 #synonym_t CFArrayRef , Ptr <__CFArray>
25 #synonym_t CFMutableArrayRef, Ptr <__CFArray>
27 #ccall CFArrayGetTypeID , IO <CFTypeID>
28 #ccall CFArrayCreate , <CFAllocatorRef> -> Ptr (Ptr ()) -> <CFIndex> -> Ptr <CFArrayCallBacks> -> IO <CFArrayRef>
29 #ccall CFArrayCreateCopy , <CFAllocatorRef> -> <CFArrayRef> -> IO <CFArrayRef>
30 #ccall CFArrayCreateMutable , <CFAllocatorRef> -> <CFIndex> -> Ptr <CFArrayCallBacks> -> IO <CFMutableArrayRef>
31 #ccall CFArrayCreateMutableCopy , <CFAllocatorRef> -> <CFIndex> -> <CFArrayRef> -> IO <CFMutableArrayRef>
32 #ccall CFArrayGetCount , <CFArrayRef> -> IO <CFIndex>
33 #cinline CFArrayGetCountOfValue , <CFArrayRef> -> Ptr <CFRange> -> Ptr () -> IO <CFIndex>
34 #cinline CFArrayContainsValue , <CFArrayRef> -> Ptr <CFRange> -> Ptr () -> IO <Boolean>
35 #ccall CFArrayGetValueAtIndex , <CFArrayRef> -> <CFIndex> -> IO (Ptr ())
36 #cinline CFArrayGetValues , <CFArrayRef> -> Ptr <CFRange> -> Ptr (Ptr ()) -> IO ()
37 #cinline CFArrayApplyFunction , <CFArrayRef> -> Ptr <CFRange> -> <CFArrayApplierFunction> -> Ptr () -> IO ()
38 #cinline CFArrayGetFirstIndexOfValue, <CFArrayRef> -> Ptr <CFRange> -> Ptr () -> IO <CFIndex>
39 #cinline CFArrayGetLastIndexOfValue , <CFArrayRef> -> Ptr <CFRange> -> Ptr () -> IO <CFIndex>
40 #cinline CFArrayBSearchValues , <CFArrayRef> -> Ptr <CFRange> -> Ptr () -> <CFComparatorFunction> -> Ptr () -> IO <CFIndex>
41 #ccall CFArrayAppendValue , <CFMutableArrayRef> -> Ptr () -> IO ()
42 #ccall CFArrayInsertValueAtIndex , <CFMutableArrayRef> -> <CFIndex> -> Ptr () -> IO ()
43 #ccall CFArraySetValueAtIndex , <CFMutableArrayRef> -> <CFIndex> -> Ptr () -> IO ()
44 #ccall CFArrayRemoveValueAtIndex , <CFMutableArrayRef> -> <CFIndex> -> IO ()
45 #ccall CFArrayRemoveAllValues , <CFMutableArrayRef> -> IO ()
46 #cinline CFArrayReplaceValues , <CFMutableArrayRef> -> Ptr <CFRange> -> Ptr (Ptr ()) -> <CFIndex> -> IO ()
47 #ccall CFArrayExchangeValuesAtIndices, <CFMutableArrayRef> -> <CFIndex> -> <CFIndex> -> IO ()
48 #cinline CFArraySortValues , <CFMutableArrayRef> -> Ptr <CFRange> -> <CFComparatorFunction> -> Ptr () -> IO ()
49 #cinline CFArrayAppendArray , <CFMutableArrayRef> -> <CFArrayRef> -> Ptr <CFRange> -> IO ()