]> git.saurik.com Git - apple/configd.git/blob - configd.tproj/configd_server.h
configd-24.1.tar.gz
[apple/configd.git] / configd.tproj / configd_server.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23 #ifndef _S_CONFIGD_SERVER_H
24 #define _S_CONFIGD_SERVER_H
25
26 #include <sys/cdefs.h>
27 #include <mach/mach.h>
28
29 #include <CoreFoundation/CFRunLoop.h>
30 #include <CoreFoundation/CFMachPort.h>
31
32 extern CFMachPortRef configd_port; /* configd server port (for new session requests) */
33
34 __BEGIN_DECLS
35
36 void configdCallback __P((CFMachPortRef port,
37 void *msg,
38 CFIndex size,
39 void *info));
40
41 boolean_t server_active __P(());
42 void server_init __P(());
43
44 void server_loop __P(());
45
46 kern_return_t _snapshot __P((mach_port_t server, int *scd_status));
47
48 kern_return_t _configopen __P((mach_port_t server,
49 xmlData_t name,
50 mach_msg_type_number_t nameCnt,
51 mach_port_t *newServer,
52 int *scd_status));
53
54 kern_return_t _configclose __P((mach_port_t server, int *scd_status));
55
56 kern_return_t _configlock __P((mach_port_t server, int *scd_status));
57
58 kern_return_t _configunlock __P((mach_port_t server, int *scd_status));
59
60 kern_return_t _configlist __P((mach_port_t server,
61 xmlData_t key,
62 mach_msg_type_number_t keyCnt,
63 int regexOptions,
64 xmlDataOut_t *list,
65 mach_msg_type_number_t *listCnt,
66 int *scd_status));
67
68 kern_return_t _configadd __P((mach_port_t server,
69 xmlData_t key,
70 mach_msg_type_number_t keyCnt,
71 xmlData_t data,
72 mach_msg_type_number_t dataCnt,
73 int *newInstance,
74 int *scd_status));
75
76 kern_return_t _configadd_s __P((mach_port_t server,
77 xmlData_t key,
78 mach_msg_type_number_t keyCnt,
79 xmlData_t data,
80 mach_msg_type_number_t dataCnt,
81 int *newInstance,
82 int *scd_status));
83
84 kern_return_t _configget __P((mach_port_t server,
85 xmlData_t key,
86 mach_msg_type_number_t keyCnt,
87 xmlDataOut_t *data,
88 mach_msg_type_number_t *dataCnt,
89 int *newInstance,
90 int *scd_status));
91
92 kern_return_t _configset __P((mach_port_t server,
93 xmlData_t key,
94 mach_msg_type_number_t keyCnt,
95 xmlData_t data,
96 mach_msg_type_number_t dataCnt,
97 int *newInstance,
98 int *scd_status));
99
100 kern_return_t _configremove __P((mach_port_t server,
101 xmlData_t key,
102 mach_msg_type_number_t keyCnt,
103 int *scd_status));
104
105 kern_return_t _configtouch __P((mach_port_t server,
106 xmlData_t key,
107 mach_msg_type_number_t keyCnt,
108 int *scd_status));
109
110 kern_return_t _notifyadd __P((mach_port_t server,
111 xmlData_t key,
112 mach_msg_type_number_t keyCnt,
113 int regexOptions,
114 int *status));
115
116 kern_return_t _notifyremove __P((mach_port_t server,
117 xmlData_t key,
118 mach_msg_type_number_t keyCnt,
119 int regexOptions,
120 int *status));
121
122 kern_return_t _notifychanges __P((mach_port_t server,
123 xmlDataOut_t *list,
124 mach_msg_type_number_t *listCnt,
125 int *status));
126
127 kern_return_t _notifyviaport __P((mach_port_t server,
128 mach_port_t port,
129 mach_msg_id_t msgid,
130 int *status));
131
132 kern_return_t _notifyviafd __P((mach_port_t server,
133 xmlData_t path,
134 mach_msg_type_number_t pathCnt,
135 int identifier,
136 int *status));
137
138 kern_return_t _notifyviasignal
139 __P((mach_port_t server,
140 task_t task,
141 int signal,
142 int *status));
143
144 kern_return_t _notifycancel __P((mach_port_t server,
145 int *scd_status));
146
147 __END_DECLS
148
149 #endif /* !_S_CONFIGD_SERVER_H */