]> git.saurik.com Git - apple/configd.git/blob - configd.tproj/configd_server.h
configd-395.11.tar.gz
[apple/configd.git] / configd.tproj / configd_server.h
1 /*
2 * Copyright (c) 2000-2006, 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 * 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
57 kern_return_t _configopen (mach_port_t server,
58 xmlData_t nameRef,
59 mach_msg_type_number_t nameLen,
60 xmlData_t optionsRef,
61 mach_msg_type_number_t optionsLen,
62 mach_port_t *newServer,
63 int *sc_status,
64 audit_token_t audit_token);
65
66 kern_return_t _configclose (mach_port_t server,
67 int *sc_status);
68
69 kern_return_t _configlock (mach_port_t server,
70 int *sc_status);
71
72 kern_return_t _configunlock (mach_port_t server,
73 int *sc_status);
74
75 kern_return_t _configlist (mach_port_t server,
76 xmlData_t keyRef,
77 mach_msg_type_number_t keyLen,
78 int isRegex,
79 xmlDataOut_t *listRef,
80 mach_msg_type_number_t *listLen,
81 int *sc_status);
82
83 kern_return_t _configadd (mach_port_t server,
84 xmlData_t keyRef,
85 mach_msg_type_number_t keyLen,
86 xmlData_t dataRef,
87 mach_msg_type_number_t dataLen,
88 int *newInstance,
89 int *sc_status);
90
91 kern_return_t _configadd_s (mach_port_t server,
92 xmlData_t keyRef,
93 mach_msg_type_number_t keyLen,
94 xmlData_t dataRef,
95 mach_msg_type_number_t dataLen,
96 int *newInstance,
97 int *sc_status);
98
99 kern_return_t _configget (mach_port_t server,
100 xmlData_t keyRef,
101 mach_msg_type_number_t keyLen,
102 xmlDataOut_t *dataRef,
103 mach_msg_type_number_t *dataLen,
104 int *newInstance,
105 int *sc_status);
106
107 kern_return_t _configset (mach_port_t server,
108 xmlData_t keyRef,
109 mach_msg_type_number_t keyLen,
110 xmlData_t dataRef,
111 mach_msg_type_number_t dataLen,
112 int *newInstance,
113 int *sc_status);
114
115 kern_return_t _configremove (mach_port_t server,
116 xmlData_t keyRef,
117 mach_msg_type_number_t keyLen,
118 int *sc_status);
119
120 kern_return_t _configtouch (mach_port_t server,
121 xmlData_t keyRef,
122 mach_msg_type_number_t keyLen,
123 int *sc_status);
124
125 kern_return_t _confignotify (mach_port_t server,
126 xmlData_t keyRef,
127 mach_msg_type_number_t keyLen,
128 int *sc_status);
129
130 kern_return_t _configget_m (mach_port_t server,
131 xmlData_t keysRef,
132 mach_msg_type_number_t keysLen,
133 xmlData_t patternsRef,
134 mach_msg_type_number_t patternsLen,
135 xmlDataOut_t *dataRef,
136 mach_msg_type_number_t *dataLen,
137 int *sc_status);
138
139 kern_return_t _configset_m (mach_port_t server,
140 xmlData_t dataRef,
141 mach_msg_type_number_t dataLen,
142 xmlData_t removeRef,
143 mach_msg_type_number_t removeLen,
144 xmlData_t notifyRef,
145 mach_msg_type_number_t notifyLen,
146 int *sc_status);
147
148 kern_return_t _notifyadd (mach_port_t server,
149 xmlData_t keyRef,
150 mach_msg_type_number_t keyLen,
151 int isRegex,
152 int *status);
153
154 kern_return_t _notifyremove (mach_port_t server,
155 xmlData_t keyRef,
156 mach_msg_type_number_t keyLen,
157 int isRegex,
158 int *status);
159
160 kern_return_t _notifychanges (mach_port_t server,
161 xmlDataOut_t *listRef,
162 mach_msg_type_number_t *listLen,
163 int *status);
164
165 kern_return_t _notifyviaport (mach_port_t server,
166 mach_port_t port,
167 mach_msg_id_t msgid,
168 int *status);
169
170 kern_return_t _notifyviafd (mach_port_t server,
171 xmlData_t pathRef,
172 mach_msg_type_number_t pathLen,
173 int identifier,
174 int *status);
175
176 kern_return_t _notifyviasignal
177 (mach_port_t server,
178 task_t task,
179 int signal,
180 int *status);
181
182 kern_return_t _notifycancel (mach_port_t server,
183 int *sc_status);
184
185 kern_return_t _notifyset (mach_port_t server,
186 xmlData_t keysRef,
187 mach_msg_type_number_t keysLen,
188 xmlData_t patternsRef,
189 mach_msg_type_number_t patternsLen,
190 int *sc_status);
191
192 __END_DECLS
193
194 #endif /* !_S_CONFIGD_SERVER_H */