2 * Copyright (c) 2000, 2001, 2003-2005, 2011, 2012, 2015, 2018-2019 Apple Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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.
21 * @APPLE_LICENSE_HEADER_END@
25 * Modification History
27 * June 1, 2001 Allan Nathanson <ajn@apple.com>
28 * - public API conversion
30 * March 24, 2000 Allan Nathanson <ajn@apple.com>
34 #include <mach/std_types.defs>
35 #include <mach/mach_types.defs>
37 subsystem config 20000;
39 UseSpecialReplyPort 1;
41 import "config_types.h";
44 * serialized XML or UTF8 data (client->server)
46 type xmlData = ^ array [] of MACH_MSG_TYPE_BYTE
50 * serialized XML or UTF8 data (server->client)
52 type xmlDataOut = ^ array [] of MACH_MSG_TYPE_BYTE
59 type task_move_send_t = MACH_MSG_TYPE_MOVE_SEND
65 * CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION
67 * Be very careful when adding, removing, or changing any
68 * of the MiG routes below. Everything tends to work fine
69 * when the SCDynamicStore client code (in the framework)
70 * and SCDynamicStore server code (in configd) are in sync.
71 * But, when the two are NOT in sync as is often the
72 * case when running the iOS Simulator, the conflict can
75 * CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION
80 * Connection management API's
83 routine configopen ( server : mach_port_t;
86 out session : mach_port_move_send_t;
88 ServerAuditToken audit_token : audit_token_t);
90 skip; /* was configclose */
91 skip; /* was configlock */
92 skip; /* was configunlock */
94 skip; /* reserved for future use */
95 skip; /* reserved for future use */
96 skip; /* reserved for future use */
97 skip; /* reserved for future use */
100 * Dynamic store access API's
103 routine configlist ( server : mach_port_t;
106 out list : xmlDataOut, dealloc;
108 ServerAuditToken audit_token : audit_token_t);
110 routine configadd ( server : mach_port_t;
113 out newInstance : int; // no longer used
115 ServerAuditToken audit_token : audit_token_t);
117 routine configget ( server : mach_port_t;
119 out data : xmlDataOut, dealloc;
120 out newInstance : int; // no longer used
122 ServerAuditToken audit_token : audit_token_t);
124 routine configset ( server : mach_port_t;
128 out newInstance : int; // no longer used
130 ServerAuditToken audit_token : audit_token_t);
132 routine configremove ( server : mach_port_t;
135 ServerAuditToken audit_token : audit_token_t);
137 skip; /* was configtouch */
139 routine configadd_s ( server : mach_port_t;
142 out newInstance : int; // no longer used
145 routine confignotify ( server : mach_port_t;
148 ServerAuditToken audit_token : audit_token_t);
150 routine configget_m ( server : mach_port_t;
153 out data : xmlDataOut, dealloc;
155 ServerAuditToken audit_token : audit_token_t);
157 routine configset_m ( server : mach_port_t;
162 ServerAuditToken audit_token : audit_token_t);
168 routine notifyadd ( server : mach_port_t;
173 routine notifyremove ( server : mach_port_t;
178 routine notifychanges ( server : mach_port_t;
179 out list : xmlDataOut, dealloc;
182 routine notifyviaport ( server : mach_port_t;
183 port : mach_port_move_send_t;
184 msgid : mach_msg_id_t; /* must be zero */
187 skip; /* was notifyviafd (passing UNIX domain socket filename) */
189 skip; /* was notifyviasignal */
191 routine notifycancel ( server : mach_port_t;
194 routine notifyset ( server : mach_port_t;
199 routine notifyviafd ( server : mach_port_t;
200 fileport : mach_port_move_send_t;
204 skip; /* reserved for future use */
205 skip; /* reserved for future use */
208 * Miscellaneous API's
211 routine snapshot ( server : mach_port_t;
213 ServerAuditToken audit_token : audit_token_t);