]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/dy_framework.h
configd-289.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / dy_framework.h
1 /*
2 * Copyright (c) 2002-2008 Apple Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24
25 #ifndef _DY_FRAMEWORK_H
26 #define _DY_FRAMEWORK_H
27
28 #include <Availability.h>
29 #include <TargetConditionals.h>
30 #include <sys/cdefs.h>
31 #include <mach/mach.h>
32 #include <CoreFoundation/CoreFoundation.h>
33 #include <IOKit/IOKitLib.h>
34
35 #if !TARGET_OS_IPHONE
36 #include <Security/Security.h>
37 #endif // !TARGET_OS_IPHONE
38
39 __BEGIN_DECLS
40
41 #pragma mark -
42 #pragma mark IOKit.framework APIs
43
44 CFMutableDictionaryRef
45 _IOBSDNameMatching (
46 mach_port_t masterPort,
47 unsigned int options,
48 const char *bsdName
49 );
50 #define IOBSDNameMatching _IOBSDNameMatching
51
52 io_object_t
53 _IOIteratorNext (
54 io_iterator_t iterator
55 );
56 #define IOIteratorNext _IOIteratorNext
57
58 kern_return_t
59 _IOMasterPort (
60 mach_port_t bootstrapPort,
61 mach_port_t *masterPort
62 );
63 #define IOMasterPort _IOMasterPort
64
65 boolean_t
66 _IOObjectConformsTo (
67 io_object_t object,
68 const io_name_t className
69 );
70 #define IOObjectConformsTo _IOObjectConformsTo
71
72 boolean_t
73 _IOObjectGetClass (
74 io_object_t object,
75 io_name_t className
76 );
77 #define IOObjectGetClass _IOObjectGetClass
78
79 kern_return_t
80 _IOObjectRelease (
81 io_object_t object
82 );
83 #define IOObjectRelease _IOObjectRelease
84
85 CFTypeRef
86 _IORegistryEntryCreateCFProperty (
87 io_registry_entry_t entry,
88 CFStringRef key,
89 CFAllocatorRef allocator,
90 IOOptionBits options
91 );
92 #define IORegistryEntryCreateCFProperty _IORegistryEntryCreateCFProperty
93
94 kern_return_t
95 _IORegistryEntryCreateCFProperties (
96 io_registry_entry_t entry,
97 CFMutableDictionaryRef *properties,
98 CFAllocatorRef allocator,
99 IOOptionBits options
100 );
101 #define IORegistryEntryCreateCFProperties _IORegistryEntryCreateCFProperties
102
103 kern_return_t
104 _IORegistryEntryCreateIterator (
105 io_registry_entry_t entry,
106 const io_name_t plane,
107 IOOptionBits options,
108 io_iterator_t *iterator
109 );
110 #define IORegistryEntryCreateIterator _IORegistryEntryCreateIterator
111
112 kern_return_t
113 _IORegistryEntryGetName (
114 io_registry_entry_t entry,
115 io_name_t name
116 );
117 #define IORegistryEntryGetName _IORegistryEntryGetName
118
119 kern_return_t
120 _IORegistryEntryGetParentEntry (
121 io_registry_entry_t entry,
122 const io_name_t plane,
123 io_registry_entry_t *parent
124 );
125 #define IORegistryEntryGetParentEntry _IORegistryEntryGetParentEntry
126
127 kern_return_t
128 _IORegistryEntryGetPath (
129 io_registry_entry_t entry,
130 const io_name_t plane,
131 io_string_t path
132 );
133 #define IORegistryEntryGetPath _IORegistryEntryGetPath
134
135 CFTypeRef
136 _IORegistryEntrySearchCFProperty (
137 io_registry_entry_t entry,
138 const io_name_t plane,
139 CFStringRef key,
140 CFAllocatorRef allocator,
141 IOOptionBits options
142 );
143 #define IORegistryEntrySearchCFProperty _IORegistryEntrySearchCFProperty
144
145 kern_return_t
146 _IOServiceGetMatchingServices (
147 mach_port_t masterPort,
148 CFDictionaryRef matching,
149 io_iterator_t *existing
150 );
151 #define IOServiceGetMatchingServices _IOServiceGetMatchingServices
152
153 CFMutableDictionaryRef
154 _IOServiceMatching (
155 const char *name
156 );
157 #define IOServiceMatching _IOServiceMatching
158
159 #pragma mark -
160 #pragma mark Security.framework APIs
161
162 #if !TARGET_OS_IPHONE
163
164 OSStatus
165 _AuthorizationMakeExternalForm (
166 AuthorizationRef authorization,
167 AuthorizationExternalForm *extForm
168 );
169 #define AuthorizationMakeExternalForm _AuthorizationMakeExternalForm
170
171 OSStatus
172 _SecAccessCopySelectedACLList (
173 SecAccessRef accessRef,
174 CSSM_ACL_AUTHORIZATION_TAG action,
175 CFArrayRef *aclList
176 );
177 #define SecAccessCopySelectedACLList _SecAccessCopySelectedACLList
178
179 OSStatus
180 _SecAccessCreate (
181 CFStringRef descriptor,
182 CFArrayRef trustedlist,
183 SecAccessRef *accessRef
184 );
185 #define SecAccessCreate _SecAccessCreate
186
187 OSStatus
188 _SecAccessCreateFromOwnerAndACL (
189 const CSSM_ACL_OWNER_PROTOTYPE *owner,
190 uint32 aclCount,
191 const CSSM_ACL_ENTRY_INFO *acls,
192 SecAccessRef *accessRef
193 );
194 #define SecAccessCreateFromOwnerAndACL _SecAccessCreateFromOwnerAndACL
195
196 OSStatus
197 _SecKeychainCopyDomainDefault (
198 SecPreferencesDomain domain,
199 SecKeychainRef *keychain
200 );
201 #define SecKeychainCopyDomainDefault _SecKeychainCopyDomainDefault
202
203 OSStatus
204 _SecKeychainGetPreferenceDomain (
205 SecPreferencesDomain *domain
206 );
207 #define SecKeychainGetPreferenceDomain _SecKeychainGetPreferenceDomain
208
209 OSStatus
210 _SecKeychainOpen (
211 const char *pathName,
212 SecKeychainRef *keychain
213 );
214 #define SecKeychainOpen _SecKeychainOpen
215
216 OSStatus
217 _SecKeychainSetDomainDefault (
218 SecPreferencesDomain domain,
219 SecKeychainRef keychain
220 );
221 #define SecKeychainSetDomainDefault _SecKeychainSetDomainDefault
222
223 OSStatus
224 _SecKeychainSetPreferenceDomain (
225 SecPreferencesDomain domain
226 );
227 #define SecKeychainSetPreferenceDomain _SecKeychainSetPreferenceDomain
228
229 OSStatus
230 _SecKeychainItemCopyContent (
231 SecKeychainItemRef itemRef,
232 SecItemClass *itemClass,
233 SecKeychainAttributeList *attrList,
234 UInt32 *length,
235 void **outData
236 );
237 #define SecKeychainItemCopyContent _SecKeychainItemCopyContent
238
239 OSStatus
240 _SecKeychainItemCreateFromContent (
241 SecItemClass itemClass,
242 SecKeychainAttributeList *attrList,
243 UInt32 length,
244 const void *data,
245 SecKeychainRef keychainRef,
246 SecAccessRef initialAccess,
247 SecKeychainItemRef *itemRef
248 );
249 #define SecKeychainItemCreateFromContent _SecKeychainItemCreateFromContent
250
251 OSStatus
252 _SecKeychainItemDelete (
253 SecKeychainItemRef itemRef
254 );
255 #define SecKeychainItemDelete _SecKeychainItemDelete
256
257 OSStatus
258 _SecKeychainItemFreeContent (
259 SecKeychainAttributeList *attrList,
260 void *data
261 );
262 #define SecKeychainItemFreeContent _SecKeychainItemFreeContent
263
264 OSStatus
265 _SecKeychainItemModifyContent (
266 SecKeychainItemRef itemRef,
267 const SecKeychainAttributeList *attrList,
268 UInt32 length,
269 const void *data
270 );
271 #define SecKeychainItemModifyContent _SecKeychainItemModifyContent
272
273 OSStatus
274 _SecKeychainSearchCopyNext (
275 SecKeychainSearchRef searchRef,
276 SecKeychainItemRef *itemRef
277 );
278 #define SecKeychainSearchCopyNext _SecKeychainSearchCopyNext
279
280 OSStatus
281 _SecKeychainSearchCreateFromAttributes (
282 CFTypeRef keychainOrArray,
283 SecItemClass itemClass,
284 const SecKeychainAttributeList *attrList,
285 SecKeychainSearchRef *searchRef
286 );
287 #define SecKeychainSearchCreateFromAttributes _SecKeychainSearchCreateFromAttributes
288
289 OSStatus
290 _SecTrustedApplicationCreateFromPath (
291 const char *path,
292 SecTrustedApplicationRef *app
293 );
294 #define SecTrustedApplicationCreateFromPath _SecTrustedApplicationCreateFromPath
295
296 #endif // !TARGET_OS_IPHONE
297
298 __END_DECLS
299
300 #endif // _DY_FRAMEWORK_H
301