]> git.saurik.com Git - apple/configd.git/blob - configd.tproj/configd_server.h
configd-453.16.tar.gz
[apple/configd.git] / configd.tproj / configd_server.h
1 /*
2 * Copyright (c) 2000-2006, 2008, 2011 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 * Modification History
26 *
27 * June 1, 2001 Allan Nathanson <ajn@apple.com>
28 * - public API conversion
29 *
30 * March 24, 2000 Allan Nathanson <ajn@apple.com>
31 * - initial revision
32 */
33
34 #ifndef _S_CONFIGD_SERVER_H
35 #define _S_CONFIGD_SERVER_H
36
37 #include <sys/cdefs.h>
38 #include <mach/mach.h>
39 #include <CoreFoundation/CoreFoundation.h>
40
41 __BEGIN_DECLS
42
43 void configdCallback (CFMachPortRef port,
44 void *msg,
45 CFIndex size,
46 void *info);
47
48 void server_init (void);
49
50 int server_shutdown (void);
51
52 void server_loop (void);
53
54 kern_return_t _snapshot (mach_port_t server,
55 int *sc_status,
56 audit_token_t audit_token);
57
58 kern_return_t _configopen (mach_port_t server,
59 xmlData_t nameRef,
60 mach_msg_type_number_t nameLen,
61 xmlData_t optionsRef,
62 mach_msg_type_number_t optionsLen,
63 mach_port_t *newServer,
64 int *sc_status,
65 audit_token_t audit_token);
66
67 kern_return_t _configlist (mach_port_t server,
68 xmlData_t keyRef,
69 mach_msg_type_number_t keyLen,
70 int isRegex,
71 xmlDataOut_t *listRef,
72 mach_msg_type_number_t *listLen,
73 int *sc_status,
74 audit_token_t audit_token);
75
76 kern_return_t _configadd (mach_port_t server,
77 xmlData_t keyRef,
78 mach_msg_type_number_t keyLen,
79 xmlData_t dataRef,
80 mach_msg_type_number_t dataLen,
81 int *newInstance,
82 int *sc_status,
83 audit_token_t audit_token);
84
85 kern_return_t _configadd_s (mach_port_t server,
86 xmlData_t keyRef,
87 mach_msg_type_number_t keyLen,
88 xmlData_t dataRef,
89 mach_msg_type_number_t dataLen,
90 int *newInstance,
91 int *sc_status);
92
93 kern_return_t _configget (mach_port_t server,
94 xmlData_t keyRef,
95 mach_msg_type_number_t keyLen,
96 xmlDataOut_t *dataRef,
97 mach_msg_type_number_t *dataLen,
98 int *newInstance,
99 int *sc_status,
100 audit_token_t audit_token);
101
102 kern_return_t _configset (mach_port_t server,
103 xmlData_t keyRef,
104 mach_msg_type_number_t keyLen,
105 xmlData_t dataRef,
106 mach_msg_type_number_t dataLen,
107 int *newInstance,
108 int *sc_status,
109 audit_token_t audit_token);
110
111 kern_return_t _configremove (mach_port_t server,
112 xmlData_t keyRef,
113 mach_msg_type_number_t keyLen,
114 int *sc_status,
115 audit_token_t audit_token);
116
117 kern_return_t _confignotify (mach_port_t server,
118 xmlData_t keyRef,
119 mach_msg_type_number_t keyLen,
120 int *sc_status,
121 audit_token_t audit_token);
122
123 kern_return_t _configget_m (mach_port_t server,
124 xmlData_t keysRef,
125 mach_msg_type_number_t keysLen,
126 xmlData_t patternsRef,
127 mach_msg_type_number_t patternsLen,
128 xmlDataOut_t *dataRef,
129 mach_msg_type_number_t *dataLen,
130 int *sc_status,
131 audit_token_t audit_token);
132
133 kern_return_t _configset_m (mach_port_t server,
134 xmlData_t dataRef,
135 mach_msg_type_number_t dataLen,
136 xmlData_t removeRef,
137 mach_msg_type_number_t removeLen,
138 xmlData_t notifyRef,
139 mach_msg_type_number_t notifyLen,
140 int *sc_status,
141 audit_token_t audit_token);
142
143 kern_return_t _notifyadd (mach_port_t server,
144 xmlData_t keyRef,
145 mach_msg_type_number_t keyLen,
146 int isRegex,
147 int *status);
148
149 kern_return_t _notifyremove (mach_port_t server,
150 xmlData_t keyRef,
151 mach_msg_type_number_t keyLen,
152 int isRegex,
153 int *status);
154
155 kern_return_t _notifychanges (mach_port_t server,
156 xmlDataOut_t *listRef,
157 mach_msg_type_number_t *listLen,
158 int *status);
159
160 kern_return_t _notifyviaport (mach_port_t server,
161 mach_port_t port,
162 mach_msg_id_t msgid,
163 int *status);
164
165 kern_return_t _notifyviafd (mach_port_t server,
166 xmlData_t pathRef,
167 mach_msg_type_number_t pathLen,
168 int identifier,
169 int *status);
170
171 kern_return_t _notifyviasignal
172 (mach_port_t server,
173 task_t task,
174 int signal,
175 int *status);
176
177 kern_return_t _notifycancel (mach_port_t server,
178 int *sc_status);
179
180 kern_return_t _notifyset (mach_port_t server,
181 xmlData_t keysRef,
182 mach_msg_type_number_t keysLen,
183 xmlData_t patternsRef,
184 mach_msg_type_number_t patternsLen,
185 int *sc_status);
186
187 __END_DECLS
188
189 #endif /* !_S_CONFIGD_SERVER_H */