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@
23 #include <mach/std_types.defs>
24 #include <mach/mach_types.defs>
26 subsystem config 20000;
29 import "config_types.h";
32 * serialized XML data (client->server)
34 type xmlData = ^ array [] of MACH_MSG_TYPE_BYTE
38 * serialized XML data (server->client)
40 type xmlDataOut = ^ array [] of MACH_MSG_TYPE_BYTE
47 type task_move_send_t = MACH_MSG_TYPE_MOVE_SEND
53 * Connection management API's
56 routine configopen ( server : mach_port_t;
58 out session : mach_port_move_send_t;
61 routine configclose ( server : mach_port_t;
64 routine configlock ( server : mach_port_t;
67 routine configunlock ( server : mach_port_t;
70 skip; /* reserved for future use */
71 skip; /* reserved for future use */
72 skip; /* reserved for future use */
73 skip; /* reserved for future use */
79 routine configlist ( server : mach_port_t;
82 out list : xmlDataOut, dealloc;
85 routine configadd ( server : mach_port_t;
88 out newInstance : int;
91 routine configget ( server : mach_port_t;
93 out data : xmlDataOut, dealloc;
94 out newInstance : int;
97 routine configset ( server : mach_port_t;
101 out newInstance : int;
104 routine configremove ( server : mach_port_t;
108 routine configtouch ( server : mach_port_t;
112 routine configadd_s ( server : mach_port_t;
115 out newInstance : int;
118 skip; /* reserved for future use */
119 skip; /* reserved for future use */
120 skip; /* reserved for future use */
126 routine notifyadd ( server : mach_port_t;
131 routine notifyremove ( server : mach_port_t;
136 routine notifychanges ( server : mach_port_t;
137 out list : xmlDataOut, dealloc;
140 routine notifyviaport ( server : mach_port_t;
141 port : mach_port_move_send_t;
142 msgid : mach_msg_id_t;
145 routine notifyviafd ( server : mach_port_t;
150 routine notifyviasignal ( server : mach_port_t;
151 task : task_t /*task_move_send_t*/;
155 routine notifycancel ( server : mach_port_t;
158 skip; /* reserved for future use */
159 skip; /* reserved for future use */
160 skip; /* reserved for future use */
161 skip; /* reserved for future use */
164 * Miscellaneous API's
167 routine snapshot ( server : mach_port_t;