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