]> gitweb @ CieloNegro.org - bindings-CoreFoundation.git/blob - cbits/helper_CFArray.c
CFArray.h
[bindings-CoreFoundation.git] / cbits / helper_CFArray.c
1 #include <bindings.cmacros.h>
2 #include <CoreFoundation/CFArray.h>
3
4 const CFArrayCallBacks*
5 inline_kCFTypeArrayCallBacks() {
6     return &kCFTypeArrayCallBacks;
7 }
8
9 CFIndex
10 inline_CFArrayGetCountOfValue(CFArrayRef theArray,
11                               CFRange* range,
12                               const void* value) {
13     return CFArrayGetCountOfValue(theArray, *range, value);
14 }
15
16 Boolean
17 inline_CFArrayContainsValue(CFArrayRef theArray,
18                             CFRange* range,
19                             const void* value) {
20     return CFArrayContainsValue(theArray, *range, value);
21 }
22
23 void
24 inline_CFArrayGetValues(CFArrayRef theArray,
25                         CFRange* range,
26                         const void** values) {
27     return CFArrayGetValues(theArray, *range, values);
28 }
29
30 void
31 inline_CFArrayApplyFunction(CFArrayRef theArray,
32                             CFRange* range,
33                             CFArrayApplierFunction applier,
34                             void* context) {
35     return CFArrayApplyFunction(theArray, *range, applier, context);
36 }
37
38 CFIndex
39 inline_CFArrayGetFirstIndexOfValue(CFArrayRef theArray,
40                                    CFRange* range,
41                                    const void *value) {
42     return CFArrayGetFirstIndexOfValue(theArray, *range, value);
43 }
44
45 CFIndex
46 inline_CFArrayGetLastIndexOfValue(CFArrayRef theArray,
47                                   CFRange* range,
48                                   const void *value) {
49     return CFArrayGetLastIndexOfValue(theArray, *range, value);
50 }
51
52 CFIndex
53 inline_CFArrayBSearchValues(CFArrayRef theArray,
54                             CFRange* range,
55                             const void *value,
56                             CFComparatorFunction comparator,
57                             void *context) {
58     return CFArrayBSearchValues(theArray, *range, value, comparator, context);
59 }
60
61 void
62 inline_CFArrayReplaceValues(CFMutableArrayRef theArray,
63                             CFRange* range,
64                             const void **newValues,
65                             CFIndex newCount) {
66     return CFArrayReplaceValues(theArray, *range, newValues, newCount);
67 }
68
69 void
70 inline_CFArraySortValues(CFMutableArrayRef theArray,
71                          CFRange* range,
72                          CFComparatorFunction comparator,
73                          void *context) {
74     return CFArraySortValues(theArray, *range, comparator, context);
75 }
76
77 void
78 inline_CFArrayAppendArray(CFMutableArrayRef theArray,
79                           CFArrayRef otherArray,
80                           CFRange* otherRange) {
81     return CFArrayAppendArray(theArray, otherArray, *otherRange);
82 }