]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/DNSServiceDiscoveryRequest.defs
mDNSResponder-98.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / DNSServiceDiscoveryRequest.defs
1 /*
2 * Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 subsystem
25 DNSServiceDiscoveryRequest 7200;
26
27 ServerPrefix provide_;
28
29 #include <mach/std_types.defs>
30 #include <mach/mach_types.defs>
31
32 import "DNSServiceDiscoveryDefines.h";
33
34 type DNSCString = c_string[*:1024];
35 type record_data = ^ array [] of MACH_MSG_TYPE_BYTE
36 ctype: record_data_t;
37 type IPPort = struct[4] of char ctype:IPPort;
38
39 simpleroutine DNSServiceBrowserCreate_rpc(
40 server: mach_port_t;
41 in client: mach_port_t;
42 in regtype: DNSCString;
43 in domain: DNSCString);
44
45
46 simpleroutine DNSServiceDomainEnumerationCreate_rpc(
47 server: mach_port_t;
48 in client: mach_port_t;
49 in registrationDomains: int);
50
51 simpleroutine DNSServiceRegistrationCreate_rpc(
52 server: mach_port_t;
53 in client: mach_port_t;
54 in name: DNSCString;
55 in regtype: DNSCString;
56 in domain: DNSCString;
57 in port: IPPort;
58 in txtRecord: DNSCString);
59
60
61 simpleroutine DNSServiceResolverResolve_rpc(
62 server: mach_port_t;
63 in client: mach_port_t;
64 in name: DNSCString;
65 in regtype: DNSCString;
66 in domain: DNSCString);
67
68 routine DNSServiceRegistrationAddRecord_rpc(
69 server: mach_port_t;
70 in client: mach_port_t;
71 in record_type: int;
72 in record_data: record_data;
73 in ttl: uint32_t;
74 out record_reference: natural_t);
75
76 simpleroutine DNSServiceRegistrationUpdateRecord_rpc(
77 server: mach_port_t;
78 in client: mach_port_t;
79 in record_reference: natural_t;
80 in record_data: record_data;
81 in ttl: uint32_t);
82
83 simpleroutine DNSServiceRegistrationRemoveRecord_rpc(
84 server: mach_port_t;
85 in client: mach_port_t;
86 in record_reference: natural_t);