2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
24 * Modification History
26 * June 1, 2001 Allan Nathanson <ajn@apple.com>
27 * - public API conversion
29 * March 24, 2000 Allan Nathanson <ajn@apple.com>
33 #include <mach/std_types.defs>
34 #include <mach/mach_types.defs>
36 subsystem config 20000;
39 import "config_types.h";
42 * serialized XML data (client->server)
44 type xmlData = ^ array [] of MACH_MSG_TYPE_BYTE
48 * serialized XML data (server->client)
50 type xmlDataOut = ^ array [] of MACH_MSG_TYPE_BYTE
57 type task_move_send_t = MACH_MSG_TYPE_MOVE_SEND
63 * Connection management API's
66 routine configopen ( server : mach_port_t;
68 out session : mach_port_move_send_t;
71 routine configclose ( server : mach_port_t;
74 routine configlock ( server : mach_port_t;
77 routine configunlock ( server : mach_port_t;
80 skip; /* reserved for future use */
81 skip; /* reserved for future use */
82 skip; /* reserved for future use */
83 skip; /* reserved for future use */
86 * Dynamic store access API's
89 routine configlist ( server : mach_port_t;
92 out list : xmlDataOut, dealloc;
95 routine configadd ( server : mach_port_t;
98 out newInstance : int;
101 routine configget ( server : mach_port_t;
103 out data : xmlDataOut, dealloc;
104 out newInstance : int;
107 routine configset ( server : mach_port_t;
111 out newInstance : int;
114 routine configremove ( server : mach_port_t;
118 routine configtouch ( server : mach_port_t;
122 routine configadd_s ( server : mach_port_t;
125 out newInstance : int;
128 routine confignotify ( server : mach_port_t;
132 routine configget_m ( server : mach_port_t;
135 out data : xmlDataOut, dealloc;
138 routine configset_m ( server : mach_port_t;
148 routine notifyadd ( server : mach_port_t;
153 routine notifyremove ( server : mach_port_t;
158 routine notifychanges ( server : mach_port_t;
159 out list : xmlDataOut, dealloc;
162 routine notifyviaport ( server : mach_port_t;
163 port : mach_port_move_send_t;
164 msgid : mach_msg_id_t;
167 routine notifyviafd ( server : mach_port_t;
172 routine notifyviasignal ( server : mach_port_t;
173 task : task_t /*task_move_send_t*/;
177 routine notifycancel ( server : mach_port_t;
180 skip; /* reserved for future use */
181 skip; /* reserved for future use */
182 skip; /* reserved for future use */
183 skip; /* reserved for future use */
186 * Miscellaneous API's
189 routine snapshot ( server : mach_port_t;