1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 DNSServiceDiscoveryRequest 7200;
21 ServerPrefix provide_;
23 #include <mach/std_types.defs>
24 #include <mach/mach_types.defs>
26 import "DNSServiceDiscoveryDefines.h";
28 type DNSCString = c_string[*:1024];
29 type record_data = ^ array [] of MACH_MSG_TYPE_BYTE
31 type IPPort = struct[4] of char ctype:IPPort;
33 simpleroutine DNSServiceBrowserCreate_rpc(
35 in client: mach_port_t;
36 in regtype: DNSCString;
37 in domain: DNSCString);
40 simpleroutine DNSServiceDomainEnumerationCreate_rpc(
42 in client: mach_port_t;
43 in registrationDomains: int);
45 simpleroutine DNSServiceRegistrationCreate_rpc(
47 in client: mach_port_t;
49 in regtype: DNSCString;
50 in domain: DNSCString;
52 in txtRecord: DNSCString);
55 simpleroutine DNSServiceResolverResolve_rpc(
57 in client: mach_port_t;
59 in regtype: DNSCString;
60 in domain: DNSCString);
62 routine DNSServiceRegistrationAddRecord_rpc(
64 in client: mach_port_t;
66 in record_data: record_data;
68 out record_reference: natural_t);
70 simpleroutine DNSServiceRegistrationUpdateRecord_rpc(
72 in client: mach_port_t;
73 in record_reference: natural_t;
74 in record_data: record_data;
77 simpleroutine DNSServiceRegistrationRemoveRecord_rpc(
79 in client: mach_port_t;
80 in record_reference: natural_t);