1/* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *     http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18subsystem
19	DNSServiceDiscoveryRequest 7200;
20
21ServerPrefix provide_;
22
23#include <mach/std_types.defs>
24#include <mach/mach_types.defs>
25
26import "DNSServiceDiscoveryDefines.h";
27
28type DNSCString = c_string[*:1024];
29type record_data = ^ array [] of MACH_MSG_TYPE_BYTE
30				ctype: record_data_t;
31type IPPort = struct[4] of char ctype:IPPort;
32
33simpleroutine DNSServiceBrowserCreate_rpc(
34				server: mach_port_t;
35                        in	client: mach_port_t;
36						in	regtype: DNSCString;
37						in	domain: DNSCString);
38
39
40simpleroutine DNSServiceDomainEnumerationCreate_rpc(
41				server: mach_port_t;
42                        in	client: mach_port_t;
43						in	registrationDomains: int);
44
45simpleroutine DNSServiceRegistrationCreate_rpc(
46				server: mach_port_t;
47                        in	client: mach_port_t;
48                        in	name: DNSCString;
49                        in	regtype: DNSCString;
50                        in	domain: DNSCString;
51                        in	port: IPPort;
52                        in	txtRecord: DNSCString);
53
54
55simpleroutine DNSServiceResolverResolve_rpc(
56				server: mach_port_t;
57                        in	client: mach_port_t;
58                        in	name: DNSCString;
59                        in	regtype: DNSCString;
60                        in	domain: DNSCString);
61
62routine DNSServiceRegistrationAddRecord_rpc(
63				server: mach_port_t;
64						in client: mach_port_t;
65						in record_type: int;
66						in record_data: record_data;
67						in ttl: uint32_t;
68						out record_reference: natural_t);
69
70simpleroutine DNSServiceRegistrationUpdateRecord_rpc(
71				server: mach_port_t;
72						in client: mach_port_t;
73                                                in record_reference: natural_t;
74						in record_data: record_data;
75						in ttl: uint32_t);
76
77simpleroutine DNSServiceRegistrationRemoveRecord_rpc(
78				server: mach_port_t;
79						in client: mach_port_t;
80						in record_reference: natural_t);
81