forked from opensource-apple/IOKitUser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IOSystemConfiguration.h
155 lines (127 loc) · 6.3 KB
/
IOSystemConfiguration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*
* Copyright (c) 2008 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this
* file.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
* Please see the License for the specific language governing rights and
* limitations under the License.
*
* @APPLE_LICENSE_HEADER_END@
*/
#ifndef _IOKIT_PWRMGT_IOSYSTEMCONFIGURATION_H
#define _IOKIT_PWRMGT_IOSYSTEMCONFIGURATION_H
#include <SystemConfiguration/SystemConfiguration.h>
#include <SystemConfiguration/SCPreferencesPrivate.h>
#include <SystemConfiguration/SCDynamicStorePrivate.h>
#include <SystemConfiguration/SCValidation.h>
#include <TargetConditionals.h>
__private_extern__ const CFStringRef _io_kSCCompAnyRegex;
#undef kSCCompAnyRegex
#define kSCCompAnyRegex _io_kSCCompAnyRegex
__private_extern__ const CFStringRef _io_kSCDynamicStoreDomainState;
#undef kSCDynamicStoreDomainState
#define kSCDynamicStoreDomainState _io_kSCDynamicStoreDomainState
#if TARGET_OS_EMBEDDED
/* These prototypes are for embedded only
* SystemConfiguration headers define each of these function for OS */
__private_extern__ int _io_SCError();
#define SCError _io_SCError
__private_extern__ Boolean _io_SCDynamicStoreAddWatchedKey(
SCDynamicStoreRef store,
CFStringRef key,
Boolean isRegex);
#define SCDynamicStoreAddWatchedKey _io_SCDynamicStoreAddWatchedKey
__private_extern__ CFDictionaryRef _io_SCDynamicStoreCopyMultiple(
SCDynamicStoreRef store,
CFArrayRef keys,
CFArrayRef patterns);
#define SCDynamicStoreCopyMultiple _io_SCDynamicStoreCopyMultiple
__private_extern__ CFPropertyListRef _io_SCDynamicStoreCopyValue(
SCDynamicStoreRef store,
CFStringRef key);
#define SCDynamicStoreCopyValue _io_SCDynamicStoreCopyValue
__private_extern__ SCDynamicStoreRef _io_SCDynamicStoreCreate(
CFAllocatorRef allocator,
CFStringRef name,
SCDynamicStoreCallBack callout,
SCDynamicStoreContext *context);
#define SCDynamicStoreCreate _io_SCDynamicStoreCreate
__private_extern__ CFRunLoopSourceRef _io_SCDynamicStoreCreateRunLoopSource(
CFAllocatorRef allocator,
SCDynamicStoreRef store,
CFIndex order);
#define SCDynamicStoreCreateRunLoopSource _io_SCDynamicStoreCreateRunLoopSource
__private_extern__ CFStringRef _io_SCDynamicStoreKeyCreate(
CFAllocatorRef allocator,
CFStringRef fmt, ...);
#define SCDynamicStoreKeyCreate _io_SCDynamicStoreKeyCreate
__private_extern__ CFStringRef _io_SCDynamicStoreKeyCreatePreferences(
CFAllocatorRef allocator,
CFStringRef prefsID,
SCPreferencesKeyType keyType);
#define SCDynamicStoreKeyCreatePreferences _io_SCDynamicStoreKeyCreatePreferences
__private_extern__ Boolean _io_SCDynamicStoreSetNotificationKeys(
SCDynamicStoreRef store,
CFArrayRef keys,
CFArrayRef patterns);
#define SCDynamicStoreSetNotificationKeys _io_SCDynamicStoreSetNotificationKeys
__private_extern__ Boolean _io_SCDynamicStoreSetValue(
SCDynamicStoreRef store,
CFStringRef key,
CFPropertyListRef value);
#define SCDynamicStoreSetValue _io_SCDynamicStoreSetValue
__private_extern__ Boolean _io_SCDynamicStoreNotifyValue(
SCDynamicStoreRef store,
CFStringRef key);
#define SCDynamicStoreNotifyValue _io_SCDynamicStoreNotifyValue
__private_extern__ Boolean _io_SCPreferencesApplyChanges(
SCPreferencesRef prefs);
#define SCPreferencesApplyChanges _io_SCPreferencesApplyChanges
__private_extern__ Boolean _io_SCPreferencesCommitChanges(
SCPreferencesRef prefs);
#define SCPreferencesCommitChanges _io_SCPreferencesCommitChanges
__private_extern__ SCPreferencesRef _io_SCPreferencesCreate(
CFAllocatorRef allocator,
CFStringRef name,
CFStringRef prefsID);
#define SCPreferencesCreate _io_SCPreferencesCreate
__private_extern__ SCPreferencesRef _io_SCPreferencesCreateWithAuthorization(
CFAllocatorRef allocator,
CFStringRef name,
CFStringRef prefsID,
AuthorizationRef authorization);
#define SCPreferencesCreateWithAuthorization _io_SCPreferencesCreateWithAuthorization
__private_extern__ CFPropertyListRef _io_SCPreferencesGetValue(
SCPreferencesRef prefs,
CFStringRef key);
#define SCPreferencesGetValue _io_SCPreferencesGetValue
__private_extern__ Boolean _io_SCPreferencesLock(
SCPreferencesRef prefs,
Boolean wait);
#define SCPreferencesLock _io_SCPreferencesLock
__private_extern__ Boolean _io_SCPreferencesRemoveValue(
SCPreferencesRef prefs,
CFStringRef key);
#define SCPreferencesRemoveValue _io_SCPreferencesRemoveValue
__private_extern__ Boolean _io_SCPreferencesSetValue(
SCPreferencesRef prefs,
CFStringRef key,
CFPropertyListRef value);
#define SCPreferencesSetValue _io_SCPreferencesSetValue
__private_extern__ Boolean _io_SCPreferencesUnlock(
SCPreferencesRef prefs);
#define SCPreferencesUnlock _io_SCPreferencesUnlock
#endif // TARGET_OS_EMBEDDED
#endif // _IOKIT_PWRMGT_IOSYSTEMCONFIGURATION_H