2 * Copyright (c) 2000, 2001, 2003-2005, 2011, 2012 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;
40 import "config_types.h";
43 * serialized XML or UTF8 data (client->server)
45 type xmlData = ^ array [] of MACH_MSG_TYPE_BYTE
49 * serialized XML or UTF8 data (server->client)
51 type xmlDataOut = ^ array [] of MACH_MSG_TYPE_BYTE
58 type task_move_send_t = MACH_MSG_TYPE_MOVE_SEND
64 * Connection management API's
67 routine configopen ( server : mach_port_t;
70 out session : mach_port_move_send_t;
72 ServerAuditToken audit_token : audit_token_t);
74 skip; /* was configclose */
75 skip; /* was configlock */
76 skip; /* was configunlock */
78 skip; /* reserved for future use */
79 skip; /* reserved for future use */
80 skip; /* reserved for future use */
81 skip; /* reserved for future use */
84 * Dynamic store access API's
87 routine configlist ( server : mach_port_t;
90 out list : xmlDataOut, dealloc;
92 ServerAuditToken audit_token : audit_token_t);
94 routine configadd ( server : mach_port_t;
97 out newInstance : int;
99 ServerAuditToken audit_token : audit_token_t);
101 routine configget ( server : mach_port_t;
103 out data : xmlDataOut, dealloc;
104 out newInstance : int;
106 ServerAuditToken audit_token : audit_token_t);
108 routine configset ( server : mach_port_t;
112 out newInstance : int;
114 ServerAuditToken audit_token : audit_token_t);
116 routine configremove ( server : mach_port_t;
119 ServerAuditToken audit_token : audit_token_t);
121 skip; /* was configtouch */
123 routine configadd_s ( server : mach_port_t;
126 out newInstance : int;
129 routine confignotify ( server : mach_port_t;
132 ServerAuditToken audit_token : audit_token_t);
134 routine configget_m ( server : mach_port_t;
137 out data : xmlDataOut, dealloc;
139 ServerAuditToken audit_token : audit_token_t);
141 routine configset_m ( server : mach_port_t;
146 ServerAuditToken audit_token : audit_token_t);
152 routine notifyadd ( server : mach_port_t;
157 routine notifyremove ( server : mach_port_t;
162 routine notifychanges ( server : mach_port_t;
163 out list : xmlDataOut, dealloc;
166 routine notifyviaport ( server : mach_port_t;
167 port : mach_port_move_send_t;
168 msgid : mach_msg_id_t;
171 routine notifyviafd ( server : mach_port_t;
176 routine notifyviasignal ( server : mach_port_t;
177 task : task_t /*task_move_send_t*/;
181 routine notifycancel ( server : mach_port_t;
184 routine notifyset ( server : mach_port_t;
189 skip; /* reserved for future use */
190 skip; /* reserved for future use */
191 skip; /* reserved for future use */
194 * Miscellaneous API's
197 routine snapshot ( server : mach_port_t;
199 ServerAuditToken audit_token : audit_token_t);