2 * Copyright (c) 2002-2006 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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.
21 * @APPLE_LICENSE_HEADER_END@
25 #ifndef _DY_FRAMEWORK_H
26 #define _DY_FRAMEWORK_H
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>
37 #pragma mark IOKit.framework APIs
39 CFMutableDictionaryRef
41 mach_port_t masterPort
,
45 #define IOBSDNameMatching _IOBSDNameMatching
49 io_iterator_t iterator
51 #define IOIteratorNext _IOIteratorNext
55 mach_port_t bootstrapPort
,
56 mach_port_t
*masterPort
58 #define IOMasterPort _IOMasterPort
63 const io_name_t className
65 #define IOObjectConformsTo _IOObjectConformsTo
72 #define IOObjectGetClass _IOObjectGetClass
78 #define IOObjectRelease _IOObjectRelease
81 _IORegistryEntryCreateCFProperty (
82 io_registry_entry_t entry
,
84 CFAllocatorRef allocator
,
87 #define IORegistryEntryCreateCFProperty _IORegistryEntryCreateCFProperty
90 _IORegistryEntryCreateCFProperties (
91 io_registry_entry_t entry
,
92 CFMutableDictionaryRef
*properties
,
93 CFAllocatorRef allocator
,
96 #define IORegistryEntryCreateCFProperties _IORegistryEntryCreateCFProperties
99 _IORegistryEntryCreateIterator (
100 io_registry_entry_t entry
,
101 const io_name_t plane
,
102 IOOptionBits options
,
103 io_iterator_t
*iterator
105 #define IORegistryEntryCreateIterator _IORegistryEntryCreateIterator
108 _IORegistryEntryGetName (
109 io_registry_entry_t entry
,
112 #define IORegistryEntryGetName _IORegistryEntryGetName
115 _IORegistryEntryGetParentEntry (
116 io_registry_entry_t entry
,
117 const io_name_t plane
,
118 io_registry_entry_t
*parent
120 #define IORegistryEntryGetParentEntry _IORegistryEntryGetParentEntry
123 _IORegistryEntryGetPath (
124 io_registry_entry_t entry
,
125 const io_name_t plane
,
128 #define IORegistryEntryGetPath _IORegistryEntryGetPath
131 _IORegistryEntrySearchCFProperty (
132 io_registry_entry_t entry
,
133 const io_name_t plane
,
135 CFAllocatorRef allocator
,
138 #define IORegistryEntrySearchCFProperty _IORegistryEntrySearchCFProperty
141 _IOServiceGetMatchingServices (
142 mach_port_t masterPort
,
143 CFDictionaryRef matching
,
144 io_iterator_t
*existing
146 #define IOServiceGetMatchingServices _IOServiceGetMatchingServices
148 CFMutableDictionaryRef
152 #define IOServiceMatching _IOServiceMatching
155 #pragma mark Security.framework APIs
158 _AuthorizationMakeExternalForm (
159 AuthorizationRef authorization
,
160 AuthorizationExternalForm
*extForm
162 #define AuthorizationMakeExternalForm _AuthorizationMakeExternalForm
165 _SecAccessCopySelectedACLList (
166 SecAccessRef accessRef
,
167 CSSM_ACL_AUTHORIZATION_TAG action
,
170 #define SecAccessCopySelectedACLList _SecAccessCopySelectedACLList
174 CFStringRef descriptor
,
175 CFArrayRef trustedlist
,
176 SecAccessRef
*accessRef
178 #define SecAccessCreate _SecAccessCreate
181 _SecAccessCreateFromOwnerAndACL (
182 const CSSM_ACL_OWNER_PROTOTYPE
*owner
,
184 const CSSM_ACL_ENTRY_INFO
*acls
,
185 SecAccessRef
*accessRef
187 #define SecAccessCreateFromOwnerAndACL _SecAccessCreateFromOwnerAndACL
190 _SecKeychainCopyDomainDefault (
191 SecPreferencesDomain domain
,
192 SecKeychainRef
*keychain
194 #define SecKeychainCopyDomainDefault _SecKeychainCopyDomainDefault
197 _SecKeychainGetPreferenceDomain (
198 SecPreferencesDomain
*domain
200 #define SecKeychainGetPreferenceDomain _SecKeychainGetPreferenceDomain
204 const char *pathName
,
205 SecKeychainRef
*keychain
207 #define SecKeychainOpen _SecKeychainOpen
210 _SecKeychainSetDomainDefault (
211 SecPreferencesDomain domain
,
212 SecKeychainRef keychain
214 #define SecKeychainSetDomainDefault _SecKeychainSetDomainDefault
217 _SecKeychainSetPreferenceDomain (
218 SecPreferencesDomain domain
220 #define SecKeychainSetPreferenceDomain _SecKeychainSetPreferenceDomain
223 _SecKeychainItemCopyContent (
224 SecKeychainItemRef itemRef
,
225 SecItemClass
*itemClass
,
226 SecKeychainAttributeList
*attrList
,
230 #define SecKeychainItemCopyContent _SecKeychainItemCopyContent
233 _SecKeychainItemCreateFromContent (
234 SecItemClass itemClass
,
235 SecKeychainAttributeList
*attrList
,
238 SecKeychainRef keychainRef
,
239 SecAccessRef initialAccess
,
240 SecKeychainItemRef
*itemRef
242 #define SecKeychainItemCreateFromContent _SecKeychainItemCreateFromContent
245 _SecKeychainItemDelete (
246 SecKeychainItemRef itemRef
248 #define SecKeychainItemDelete _SecKeychainItemDelete
251 _SecKeychainItemFreeContent (
252 SecKeychainAttributeList
*attrList
,
255 #define SecKeychainItemFreeContent _SecKeychainItemFreeContent
258 _SecKeychainItemModifyContent (
259 SecKeychainItemRef itemRef
,
260 const SecKeychainAttributeList
*attrList
,
264 #define SecKeychainItemModifyContent _SecKeychainItemModifyContent
267 _SecKeychainSearchCopyNext (
268 SecKeychainSearchRef searchRef
,
269 SecKeychainItemRef
*itemRef
271 #define SecKeychainSearchCopyNext _SecKeychainSearchCopyNext
274 _SecKeychainSearchCreateFromAttributes (
275 CFTypeRef keychainOrArray
,
276 SecItemClass itemClass
,
277 const SecKeychainAttributeList
*attrList
,
278 SecKeychainSearchRef
*searchRef
280 #define SecKeychainSearchCreateFromAttributes _SecKeychainSearchCreateFromAttributes
283 _SecTrustedApplicationCreateFromPath (
285 SecTrustedApplicationRef
*app
287 #define SecTrustedApplicationCreateFromPath _SecTrustedApplicationCreateFromPath
291 #endif /* _DY_FRAMEWORK_H */