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