]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/config.defs
configd-130.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 options : xmlData;
70 out session : mach_port_move_send_t;
71 out status : int);
72
73 routine configclose ( server : mach_port_t;
74 out status : int);
75
76 routine configlock ( server : mach_port_t;
77 out status : int);
78
79 routine configunlock ( server : mach_port_t;
80 out status : int);
81
82 skip; /* reserved for future use */
83 skip; /* reserved for future use */
84 skip; /* reserved for future use */
85 skip; /* reserved for future use */
86
87 /*
88 * Dynamic store access API's
89 */
90
91 routine configlist ( server : mach_port_t;
92 xmlData : xmlData;
93 isRegex : int;
94 out list : xmlDataOut, dealloc;
95 out status : int);
96
97 routine configadd ( server : mach_port_t;
98 key : xmlData;
99 data : xmlData;
100 out newInstance : int;
101 out status : int);
102
103 routine configget ( server : mach_port_t;
104 key : xmlData;
105 out data : xmlDataOut, dealloc;
106 out newInstance : int;
107 out status : int);
108
109 routine configset ( server : mach_port_t;
110 key : xmlData;
111 data : xmlData;
112 instance : int;
113 out newInstance : int;
114 out status : int);
115
116 routine configremove ( server : mach_port_t;
117 key : xmlData;
118 out status : int);
119
120 routine configtouch ( server : mach_port_t;
121 key : xmlData;
122 out status : int);
123
124 routine configadd_s ( server : mach_port_t;
125 key : xmlData;
126 data : xmlData;
127 out newInstance : int;
128 out status : int);
129
130 routine confignotify ( server : mach_port_t;
131 key : xmlData;
132 out status : int);
133
134 routine configget_m ( server : mach_port_t;
135 keys : xmlData;
136 patterns : xmlData;
137 out data : xmlDataOut, dealloc;
138 out status : int);
139
140 routine configset_m ( server : mach_port_t;
141 data : xmlData;
142 remove : xmlData;
143 notify : xmlData;
144 out status : int);
145
146 /*
147 * Notification API's
148 */
149
150 routine notifyadd ( server : mach_port_t;
151 key : xmlData;
152 isRegex : int;
153 out status : int);
154
155 routine notifyremove ( server : mach_port_t;
156 key : xmlData;
157 isRegex : int;
158 out status : int);
159
160 routine notifychanges ( server : mach_port_t;
161 out list : xmlDataOut, dealloc;
162 out status : int);
163
164 routine notifyviaport ( server : mach_port_t;
165 port : mach_port_move_send_t;
166 msgid : mach_msg_id_t;
167 out status : int);
168
169 routine notifyviafd ( server : mach_port_t;
170 path : xmlData;
171 identifier : int;
172 out status : int);
173
174 routine notifyviasignal ( server : mach_port_t;
175 task : task_t /*task_move_send_t*/;
176 sig : int;
177 out status : int);
178
179 routine notifycancel ( server : mach_port_t;
180 out status : int);
181
182 routine notifyset ( server : mach_port_t;
183 keys : xmlData;
184 patterns : xmlData;
185 out status : int);
186
187 skip; /* reserved for future use */
188 skip; /* reserved for future use */
189 skip; /* reserved for future use */
190
191 /*
192 * Miscellaneous API's
193 */
194
195 routine snapshot ( server : mach_port_t;
196 out status : int);