]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/dy_framework.h
configd-204.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / dy_framework.h
1 /*
2 * Copyright (c) 2002-2006 Apple Computer, 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 <sys/cdefs.h>
29 #include <mach/mach.h>
30 #include <CoreFoundation/CoreFoundation.h>
31 #include <IOKit/IOKitLib.h>
32 #include <Security/Security.h>
33
34 __BEGIN_DECLS
35
36 #pragma mark -
37 #pragma mark IOKit.framework APIs
38
39 CFMutableDictionaryRef
40 _IOBSDNameMatching (
41 mach_port_t masterPort,
42 unsigned int options,
43 const char *bsdName
44 );
45 #define IOBSDNameMatching _IOBSDNameMatching
46
47 io_object_t
48 _IOIteratorNext (
49 io_iterator_t iterator
50 );
51 #define IOIteratorNext _IOIteratorNext
52
53 kern_return_t
54 _IOMasterPort (
55 mach_port_t bootstrapPort,
56 mach_port_t *masterPort
57 );
58 #define IOMasterPort _IOMasterPort
59
60 boolean_t
61 _IOObjectConformsTo (
62 io_object_t object,
63 const io_name_t className
64 );
65 #define IOObjectConformsTo _IOObjectConformsTo
66
67 boolean_t
68 _IOObjectGetClass (
69 io_object_t object,
70 io_name_t className
71 );
72 #define IOObjectGetClass _IOObjectGetClass
73
74 kern_return_t
75 _IOObjectRelease (
76 io_object_t object
77 );
78 #define IOObjectRelease _IOObjectRelease
79
80 CFTypeRef
81 _IORegistryEntryCreateCFProperty (
82 io_registry_entry_t entry,
83 CFStringRef key,
84 CFAllocatorRef allocator,
85 IOOptionBits options
86 );
87 #define IORegistryEntryCreateCFProperty _IORegistryEntryCreateCFProperty
88
89 kern_return_t
90 _IORegistryEntryCreateCFProperties (
91 io_registry_entry_t entry,
92 CFMutableDictionaryRef *properties,
93 CFAllocatorRef allocator,
94 IOOptionBits options
95 );
96 #define IORegistryEntryCreateCFProperties _IORegistryEntryCreateCFProperties
97
98 kern_return_t
99 _IORegistryEntryCreateIterator (
100 io_registry_entry_t entry,
101 const io_name_t plane,
102 IOOptionBits options,
103 io_iterator_t *iterator
104 );
105 #define IORegistryEntryCreateIterator _IORegistryEntryCreateIterator
106
107 kern_return_t
108 _IORegistryEntryGetName (
109 io_registry_entry_t entry,
110 io_name_t name
111 );
112 #define IORegistryEntryGetName _IORegistryEntryGetName
113
114 kern_return_t
115 _IORegistryEntryGetParentEntry (
116 io_registry_entry_t entry,
117 const io_name_t plane,
118 io_registry_entry_t *parent
119 );
120 #define IORegistryEntryGetParentEntry _IORegistryEntryGetParentEntry
121
122 kern_return_t
123 _IORegistryEntryGetPath (
124 io_registry_entry_t entry,
125 const io_name_t plane,
126 io_string_t path
127 );
128 #define IORegistryEntryGetPath _IORegistryEntryGetPath
129
130 CFTypeRef
131 _IORegistryEntrySearchCFProperty (
132 io_registry_entry_t entry,
133 const io_name_t plane,
134 CFStringRef key,
135 CFAllocatorRef allocator,
136 IOOptionBits options
137 );
138 #define IORegistryEntrySearchCFProperty _IORegistryEntrySearchCFProperty
139
140 kern_return_t
141 _IOServiceGetMatchingServices (
142 mach_port_t masterPort,
143 CFDictionaryRef matching,
144 io_iterator_t *existing
145 );
146 #define IOServiceGetMatchingServices _IOServiceGetMatchingServices
147
148 CFMutableDictionaryRef
149 _IOServiceMatching (
150 const char *name
151 );
152 #define IOServiceMatching _IOServiceMatching
153
154 #pragma mark -
155 #pragma mark Security.framework APIs
156
157 OSStatus
158 _AuthorizationMakeExternalForm (
159 AuthorizationRef authorization,
160 AuthorizationExternalForm *extForm
161 );
162 #define AuthorizationMakeExternalForm _AuthorizationMakeExternalForm
163
164 OSStatus
165 _SecAccessCopySelectedACLList (
166 SecAccessRef accessRef,
167 CSSM_ACL_AUTHORIZATION_TAG action,
168 CFArrayRef *aclList
169 );
170 #define SecAccessCopySelectedACLList _SecAccessCopySelectedACLList
171
172 OSStatus
173 _SecAccessCreate (
174 CFStringRef descriptor,
175 CFArrayRef trustedlist,
176 SecAccessRef *accessRef
177 );
178 #define SecAccessCreate _SecAccessCreate
179
180 OSStatus
181 _SecAccessCreateFromOwnerAndACL (
182 const CSSM_ACL_OWNER_PROTOTYPE *owner,
183 uint32 aclCount,
184 const CSSM_ACL_ENTRY_INFO *acls,
185 SecAccessRef *accessRef
186 );
187 #define SecAccessCreateFromOwnerAndACL _SecAccessCreateFromOwnerAndACL
188
189 OSStatus
190 _SecKeychainCopyDomainDefault (
191 SecPreferencesDomain domain,
192 SecKeychainRef *keychain
193 );
194 #define SecKeychainCopyDomainDefault _SecKeychainCopyDomainDefault
195
196 OSStatus
197 _SecKeychainGetPreferenceDomain (
198 SecPreferencesDomain *domain
199 );
200 #define SecKeychainGetPreferenceDomain _SecKeychainGetPreferenceDomain
201
202 OSStatus
203 _SecKeychainOpen (
204 const char *pathName,
205 SecKeychainRef *keychain
206 );
207 #define SecKeychainOpen _SecKeychainOpen
208
209 OSStatus
210 _SecKeychainSetDomainDefault (
211 SecPreferencesDomain domain,
212 SecKeychainRef keychain
213 );
214 #define SecKeychainSetDomainDefault _SecKeychainSetDomainDefault
215
216 OSStatus
217 _SecKeychainSetPreferenceDomain (
218 SecPreferencesDomain domain
219 );
220 #define SecKeychainSetPreferenceDomain _SecKeychainSetPreferenceDomain
221
222 OSStatus
223 _SecKeychainItemCopyContent (
224 SecKeychainItemRef itemRef,
225 SecItemClass *itemClass,
226 SecKeychainAttributeList *attrList,
227 UInt32 *length,
228 void **outData
229 );
230 #define SecKeychainItemCopyContent _SecKeychainItemCopyContent
231
232 OSStatus
233 _SecKeychainItemCreateFromContent (
234 SecItemClass itemClass,
235 SecKeychainAttributeList *attrList,
236 UInt32 length,
237 const void *data,
238 SecKeychainRef keychainRef,
239 SecAccessRef initialAccess,
240 SecKeychainItemRef *itemRef
241 );
242 #define SecKeychainItemCreateFromContent _SecKeychainItemCreateFromContent
243
244 OSStatus
245 _SecKeychainItemDelete (
246 SecKeychainItemRef itemRef
247 );
248 #define SecKeychainItemDelete _SecKeychainItemDelete
249
250 OSStatus
251 _SecKeychainItemFreeContent (
252 SecKeychainAttributeList *attrList,
253 void *data
254 );
255 #define SecKeychainItemFreeContent _SecKeychainItemFreeContent
256
257 OSStatus
258 _SecKeychainItemModifyContent (
259 SecKeychainItemRef itemRef,
260 const SecKeychainAttributeList *attrList,
261 UInt32 length,
262 const void *data
263 );
264 #define SecKeychainItemModifyContent _SecKeychainItemModifyContent
265
266 OSStatus
267 _SecKeychainSearchCopyNext (
268 SecKeychainSearchRef searchRef,
269 SecKeychainItemRef *itemRef
270 );
271 #define SecKeychainSearchCopyNext _SecKeychainSearchCopyNext
272
273 OSStatus
274 _SecKeychainSearchCreateFromAttributes (
275 CFTypeRef keychainOrArray,
276 SecItemClass itemClass,
277 const SecKeychainAttributeList *attrList,
278 SecKeychainSearchRef *searchRef
279 );
280 #define SecKeychainSearchCreateFromAttributes _SecKeychainSearchCreateFromAttributes
281
282 OSStatus
283 _SecTrustedApplicationCreateFromPath (
284 const char *path,
285 SecTrustedApplicationRef *app
286 );
287 #define SecTrustedApplicationCreateFromPath _SecTrustedApplicationCreateFromPath
288
289 __END_DECLS
290
291 #endif /* _DY_FRAMEWORK_H */
292