2 * Copyright (c) 2002 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 DNSServiceDiscoveryRequest 7200;
26 ServerPrefix provide_;
28 #include <mach/std_types.defs>
29 #include <mach/mach_types.defs>
31 import "DNSServiceDiscoveryDefines.h";
33 type DNSCString = c_string[*:1024];
34 type record_data = ^ array [] of MACH_MSG_TYPE_BYTE
36 type IPPort = struct[4] of char ctype:IPPort;
38 simpleroutine DNSServiceBrowserCreate_rpc(
40 in client: mach_port_t;
41 in regtype: DNSCString;
42 in domain: DNSCString);
45 simpleroutine DNSServiceDomainEnumerationCreate_rpc(
47 in client: mach_port_t;
48 in registrationDomains: int);
50 simpleroutine DNSServiceRegistrationCreate_rpc(
52 in client: mach_port_t;
54 in regtype: DNSCString;
55 in domain: DNSCString;
57 in txtRecord: DNSCString);
60 simpleroutine DNSServiceResolverResolve_rpc(
62 in client: mach_port_t;
64 in regtype: DNSCString;
65 in domain: DNSCString);
67 routine DNSServiceRegistrationAddRecord_rpc(
69 in client: mach_port_t;
71 in record_data: record_data;
73 out record_reference: natural_t);
75 simpleroutine DNSServiceRegistrationUpdateRecord_rpc(
77 in client: mach_port_t;
78 in record_reference: natural_t;
79 in record_data: record_data;
82 simpleroutine DNSServiceRegistrationRemoveRecord_rpc(
84 in client: mach_port_t;
85 in record_reference: natural_t);