Added comment that local_port & remote_port are expressed as numeric integer values
[people/sha0/mDNSResponder.git] / mDNSMacOSX / helpermsg.defs
1 /* -*- Mode: C; tab-width: 4 -*-
2  *
3  * Copyright (c) 2007 Apple 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 #include <mach/std_types.defs>
19 #include <mach/mach_types.defs>
20
21 import "helpermsg-types.h";
22
23 type v4addr_t  = array [ 4] of uint8_t;
24 type ethaddr_t = array [ 6] of uint8_t;
25 type v6addr_t  = array [16] of uint8_t;
26 type string_t = c_string[*:1024];
27
28 subsystem helper 1833193043;
29 serverprefix do_;
30 userprefix proxy_;
31
32 simpleroutine mDNSExit(                 port                    : mach_port_t;
33                 ServerAuditToken                token                   : audit_token_t);
34
35 simpleroutine mDNSRequestBPF(   port                    : mach_port_t;
36                 ServerAuditToken                token                   : audit_token_t);
37
38 routine mDNSPowerRequest(               port                    : mach_port_t;
39                                                                 key                             : int;
40                                                                 interval                : int;
41                 out                                             err                             : int;
42                 ServerAuditToken                token                   : audit_token_t);
43
44 routine mDNSSetARP(                             port                    : mach_port_t;
45                                                                 ifindex                 : int;
46                                                                 ip                              : v4addr_t;
47                                                                 eth                             : ethaddr_t;
48                 out                                             err                             : int;
49                 ServerAuditToken                token                   : audit_token_t);
50
51 simpleroutine mDNSNotify(               port                    : mach_port_t;
52                                                                 title                   : string_t;
53                                                                 msg                             : string_t;
54                 ServerAuditToken                token                   : audit_token_t);
55
56 simpleroutine mDNSDynamicStoreSetConfig(
57                                                                 port                    : mach_port_t;
58                                                                 key                             : int;
59                                                                 subkey                  : string_t;
60                                                                 value                   : pointer_t;
61                 ServerAuditToken                token                   : audit_token_t);
62
63 simpleroutine mDNSPreferencesSetName(
64                                                                 port                    : mach_port_t;
65                                                                 key                             : int;
66                                                                 old                             : string_t;
67                                                                 new                             : string_t;
68                 ServerAuditToken                token                   : audit_token_t);
69
70 routine mDNSKeychainGetSecrets( port                    : mach_port_t;
71                 out                                             numsecrets              : unsigned;
72                 out                                             secrets                 : pointer_t;
73                 out                                             err                             : int;
74                 ServerAuditToken                token                   : audit_token_t);
75
76 simpleroutine mDNSAutoTunnelInterfaceUpDown(
77                                                                 port                    : mach_port_t;
78                                                                 updown                  : int;
79                                                                 address                 : v6addr_t;
80                 ServerAuditToken                token                   : audit_token_t);
81
82 simpleroutine mDNSConfigureServer(
83                                                                 port                    : mach_port_t;
84                                                                 updown                  : int;
85                                                                 fqdn                    : string_t;
86                 ServerAuditToken                token                   : audit_token_t);
87
88 routine mDNSAutoTunnelSetKeys(  port                    : mach_port_t;
89                                                                 replacedelete   : int;
90                                                                 local_inner             : v6addr_t;
91                                                                 local_outer             : v4addr_t;
92                                                                 local_port              : uint16_t;             /* Port expressed as a numeric integer value */
93                                                                 remote_inner    : v6addr_t;
94                                                                 remote_outer    : v4addr_t;
95                                                                 remote_port             : uint16_t;             /* Port expressed as a numeric integer value */
96                                                                 fqdn                    : string_t;
97                 out                                             err                             : int;
98                 ServerAuditToken                token                   : audit_token_t);