]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/DNSServiceDiscoveryRequest.defs
mDNSResponder-379.27.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / DNSServiceDiscoveryRequest.defs
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
18 subsystem
19 DNSServiceDiscoveryRequest 7200;
20
21 ServerPrefix provide_;
22
23 #include <mach/std_types.defs>
24 #include <mach/mach_types.defs>
25
26 import "DNSServiceDiscoveryDefines.h";
27
28 type DNSCString = c_string[*:1024];
29 type record_data = ^ array [] of MACH_MSG_TYPE_BYTE
30 ctype: record_data_t;
31 type IPPort = struct[4] of char ctype:IPPort;
32
33 simpleroutine DNSServiceBrowserCreate_rpc(
34 server: mach_port_t;
35 in client: mach_port_t;
36 in regtype: DNSCString;
37 in domain: DNSCString);
38
39
40 simpleroutine DNSServiceDomainEnumerationCreate_rpc(
41 server: mach_port_t;
42 in client: mach_port_t;
43 in registrationDomains: int);
44
45 simpleroutine 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
55 simpleroutine 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
62 routine 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
70 simpleroutine 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
77 simpleroutine DNSServiceRegistrationRemoveRecord_rpc(
78 server: mach_port_t;
79 in client: mach_port_t;
80 in record_reference: natural_t);