]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/config.defs
configd-84.6.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / config.defs
1 /*
2 * Copyright (c) 2000-2003 Apple Computer, 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 #include <mach/std_types.defs>
35 #include <mach/mach_types.defs>
36
37 subsystem config 20000;
38 serverprefix _;
39
40 import "config_types.h";
41
42 /*
43 * serialized XML or UTF8 data (client->server)
44 */
45 type xmlData = ^ array [] of MACH_MSG_TYPE_BYTE
46 ctype : xmlData_t;
47
48 /*
49 * serialized XML or UTF8 data (server->client)
50 */
51 type xmlDataOut = ^ array [] of MACH_MSG_TYPE_BYTE
52 ctype : xmlDataOut_t;
53
54 /*
55 * additional types
56 */
57 /*
58 type task_move_send_t = MACH_MSG_TYPE_MOVE_SEND
59 ctype: mach_port_t;
60 */
61
62
63 /*
64 * Connection management API's
65 */
66
67 routine configopen ( server : mach_port_t;
68 name : xmlData;
69 out session : mach_port_move_send_t;
70 out status : int);
71
72 routine configclose ( server : mach_port_t;
73 out status : int);
74
75 routine configlock ( server : mach_port_t;
76 out status : int);
77
78 routine configunlock ( server : mach_port_t;
79 out status : int);
80
81 skip; /* reserved for future use */
82 skip; /* reserved for future use */
83 skip; /* reserved for future use */
84 skip; /* reserved for future use */
85
86 /*
87 * Dynamic store access API's
88 */
89
90 routine configlist ( server : mach_port_t;
91 xmlData : xmlData;
92 isRegex : int;
93 out list : xmlDataOut, dealloc;
94 out status : int);
95
96 routine configadd ( server : mach_port_t;
97 key : xmlData;
98 data : xmlData;
99 out newInstance : int;
100 out status : int);
101
102 routine configget ( server : mach_port_t;
103 key : xmlData;
104 out data : xmlDataOut, dealloc;
105 out newInstance : int;
106 out status : int);
107
108 routine configset ( server : mach_port_t;
109 key : xmlData;
110 data : xmlData;
111 instance : int;
112 out newInstance : int;
113 out status : int);
114
115 routine configremove ( server : mach_port_t;
116 key : xmlData;
117 out status : int);
118
119 routine configtouch ( server : mach_port_t;
120 key : xmlData;
121 out status : int);
122
123 routine configadd_s ( server : mach_port_t;
124 key : xmlData;
125 data : xmlData;
126 out newInstance : int;
127 out status : int);
128
129 routine confignotify ( server : mach_port_t;
130 key : xmlData;
131 out status : int);
132
133 routine configget_m ( server : mach_port_t;
134 keys : xmlData;
135 patterns : xmlData;
136 out data : xmlDataOut, dealloc;
137 out status : int);
138
139 routine configset_m ( server : mach_port_t;
140 data : xmlData;
141 remove : xmlData;
142 notify : xmlData;
143 out status : int);
144
145 /*
146 * Notification API's
147 */
148
149 routine notifyadd ( server : mach_port_t;
150 key : xmlData;
151 isRegex : int;
152 out status : int);
153
154 routine notifyremove ( server : mach_port_t;
155 key : xmlData;
156 isRegex : int;
157 out status : int);
158
159 routine notifychanges ( server : mach_port_t;
160 out list : xmlDataOut, dealloc;
161 out status : int);
162
163 routine notifyviaport ( server : mach_port_t;
164 port : mach_port_move_send_t;
165 msgid : mach_msg_id_t;
166 out status : int);
167
168 routine notifyviafd ( server : mach_port_t;
169 path : xmlData;
170 identifier : int;
171 out status : int);
172
173 routine notifyviasignal ( server : mach_port_t;
174 task : task_t /*task_move_send_t*/;
175 sig : int;
176 out status : int);
177
178 routine notifycancel ( server : mach_port_t;
179 out status : int);
180
181 routine notifyset ( server : mach_port_t;
182 keys : xmlData;
183 patterns : xmlData;
184 out status : int);
185
186 skip; /* reserved for future use */
187 skip; /* reserved for future use */
188 skip; /* reserved for future use */
189
190 /*
191 * Miscellaneous API's
192 */
193
194 routine snapshot ( server : mach_port_t;
195 out status : int);