Commit | Line | Data |
---|---|---|
763cd6e3 RS |
1 | /* |
2 | * Please do not edit this file. | |
3 | * It was generated using rpcgen. | |
4 | */ | |
5 | ||
6 | #ifndef _PORTMAP_H_RPCGEN | |
7 | #define _PORTMAP_H_RPCGEN | |
8 | ||
8ae943f6 RS |
9 | |
10 | ||
763cd6e3 RS |
11 | |
12 | #ifdef __cplusplus | |
13 | extern "C" { | |
14 | #endif | |
15 | ||
16 | #define PMAP_PORT 111 | |
17 | ||
4edd7830 | 18 | struct pmap2_mapping { |
763cd6e3 RS |
19 | u_int prog; |
20 | u_int vers; | |
21 | u_int prot; | |
22 | u_int port; | |
23 | }; | |
4edd7830 | 24 | typedef struct pmap2_mapping pmap2_mapping; |
763cd6e3 | 25 | |
4edd7830 | 26 | struct pmap2_call_args { |
763cd6e3 RS |
27 | u_int prog; |
28 | u_int vers; | |
29 | u_int proc; | |
30 | struct { | |
31 | u_int args_len; | |
32 | char *args_val; | |
33 | } args; | |
34 | }; | |
4edd7830 | 35 | typedef struct pmap2_call_args pmap2_call_args; |
763cd6e3 | 36 | |
4edd7830 | 37 | struct pmap2_call_result { |
763cd6e3 RS |
38 | u_int port; |
39 | struct { | |
40 | u_int res_len; | |
41 | char *res_val; | |
42 | } res; | |
43 | }; | |
4edd7830 | 44 | typedef struct pmap2_call_result pmap2_call_result; |
763cd6e3 | 45 | |
4edd7830 RS |
46 | struct pmap2_mapping_list { |
47 | pmap2_mapping map; | |
48 | struct pmap2_mapping_list *next; | |
8ae943f6 | 49 | }; |
4edd7830 | 50 | typedef struct pmap2_mapping_list pmap2_mapping_list; |
8ae943f6 | 51 | |
4edd7830 RS |
52 | struct pmap2_dump_result { |
53 | struct pmap2_mapping_list *list; | |
8ae943f6 | 54 | }; |
4edd7830 RS |
55 | typedef struct pmap2_dump_result pmap2_dump_result; |
56 | ||
24f45c54 | 57 | struct pmap3_string_result { |
7fbedfde RS |
58 | char *addr; |
59 | }; | |
24f45c54 | 60 | typedef struct pmap3_string_result pmap3_string_result; |
7fbedfde | 61 | |
4edd7830 RS |
62 | struct pmap3_mapping { |
63 | u_int prog; | |
64 | u_int vers; | |
65 | char *netid; | |
66 | char *addr; | |
67 | char *owner; | |
68 | }; | |
69 | typedef struct pmap3_mapping pmap3_mapping; | |
70 | ||
71 | struct pmap3_mapping_list { | |
72 | pmap3_mapping map; | |
73 | struct pmap3_mapping_list *next; | |
74 | }; | |
75 | typedef struct pmap3_mapping_list pmap3_mapping_list; | |
76 | ||
77 | struct pmap3_dump_result { | |
78 | struct pmap3_mapping_list *list; | |
79 | }; | |
80 | typedef struct pmap3_dump_result pmap3_dump_result; | |
8ae943f6 | 81 | |
b71f7e82 RS |
82 | struct pmap3_call_args { |
83 | u_int prog; | |
84 | u_int vers; | |
85 | u_int proc; | |
86 | struct { | |
87 | u_int args_len; | |
88 | char *args_val; | |
89 | } args; | |
90 | }; | |
91 | typedef struct pmap3_call_args pmap3_call_args; | |
92 | ||
93 | struct pmap3_call_result { | |
94 | u_int port; | |
95 | struct { | |
96 | u_int res_len; | |
97 | char *res_val; | |
98 | } res; | |
99 | }; | |
100 | typedef struct pmap3_call_result pmap3_call_result; | |
101 | ||
729266a7 RS |
102 | struct pmap3_netbuf { |
103 | u_int maxlen; | |
104 | struct { | |
105 | u_int buf_len; | |
106 | char *buf_val; | |
107 | } buf; | |
108 | }; | |
109 | typedef struct pmap3_netbuf pmap3_netbuf; | |
110 | ||
763cd6e3 RS |
111 | #define PMAP_PROGRAM 100000 |
112 | #define PMAP_V2 2 | |
113 | ||
114 | #if defined(__STDC__) || defined(__cplusplus) | |
0f0e352f RS |
115 | #define PMAP2_NULL 0 |
116 | extern void * pmap2_null_2(void *, CLIENT *); | |
117 | extern void * pmap2_null_2_svc(void *, struct svc_req *); | |
118 | #define PMAP2_SET 1 | |
4edd7830 RS |
119 | extern bool_t * pmap2_set_2(pmap2_mapping *, CLIENT *); |
120 | extern bool_t * pmap2_set_2_svc(pmap2_mapping *, struct svc_req *); | |
0f0e352f | 121 | #define PMAP2_UNSET 2 |
4edd7830 RS |
122 | extern bool_t * pmap2_unset_2(pmap2_mapping *, CLIENT *); |
123 | extern bool_t * pmap2_unset_2_svc(pmap2_mapping *, struct svc_req *); | |
0f0e352f | 124 | #define PMAP2_GETPORT 3 |
4edd7830 RS |
125 | extern u_int * pmap2_getport_2(pmap2_mapping *, CLIENT *); |
126 | extern u_int * pmap2_getport_2_svc(pmap2_mapping *, struct svc_req *); | |
0f0e352f | 127 | #define PMAP2_DUMP 4 |
4edd7830 RS |
128 | extern pmap2_dump_result * pmap2_dump_2(void *, CLIENT *); |
129 | extern pmap2_dump_result * pmap2_dump_2_svc(void *, struct svc_req *); | |
0f0e352f | 130 | #define PMAP2_CALLIT 5 |
4edd7830 RS |
131 | extern pmap2_call_result * pmap2_callit_2(pmap2_call_args *, CLIENT *); |
132 | extern pmap2_call_result * pmap2_callit_2_svc(pmap2_call_args *, struct svc_req *); | |
763cd6e3 RS |
133 | extern int pmap_program_2_freeresult (SVCXPRT *, zdrproc_t, caddr_t); |
134 | ||
135 | #else /* K&R C */ | |
0f0e352f RS |
136 | #define PMAP2_NULL 0 |
137 | extern void * pmap2_null_2(); | |
138 | extern void * pmap2_null_2_svc(); | |
139 | #define PMAP2_SET 1 | |
140 | extern bool_t * pmap2_set_2(); | |
141 | extern bool_t * pmap2_set_2_svc(); | |
142 | #define PMAP2_UNSET 2 | |
143 | extern bool_t * pmap2_unset_2(); | |
144 | extern bool_t * pmap2_unset_2_svc(); | |
145 | #define PMAP2_GETPORT 3 | |
146 | extern u_int * pmap2_getport_2(); | |
147 | extern u_int * pmap2_getport_2_svc(); | |
148 | #define PMAP2_DUMP 4 | |
4edd7830 RS |
149 | extern pmap2_dump_result * pmap2_dump_2(); |
150 | extern pmap2_dump_result * pmap2_dump_2_svc(); | |
0f0e352f | 151 | #define PMAP2_CALLIT 5 |
4edd7830 RS |
152 | extern pmap2_call_result * pmap2_callit_2(); |
153 | extern pmap2_call_result * pmap2_callit_2_svc(); | |
763cd6e3 RS |
154 | extern int pmap_program_2_freeresult (); |
155 | #endif /* K&R C */ | |
4edd7830 RS |
156 | #define PMAP_V3 3 |
157 | ||
158 | #if defined(__STDC__) || defined(__cplusplus) | |
159 | #define PMAP3_NULL 0 | |
160 | extern void * pmap3_null_3(void *, CLIENT *); | |
161 | extern void * pmap3_null_3_svc(void *, struct svc_req *); | |
d731e94c RS |
162 | #define PMAP3_SET 1 |
163 | extern bool_t * pmap3_set_3(pmap3_mapping *, CLIENT *); | |
164 | extern bool_t * pmap3_set_3_svc(pmap3_mapping *, struct svc_req *); | |
165 | #define PMAP3_UNSET 2 | |
166 | extern bool_t * pmap3_unset_3(pmap3_mapping *, CLIENT *); | |
167 | extern bool_t * pmap3_unset_3_svc(pmap3_mapping *, struct svc_req *); | |
7fbedfde | 168 | #define PMAP3_GETADDR 3 |
24f45c54 RS |
169 | extern pmap3_string_result * pmap3_getaddr_3(pmap3_mapping *, CLIENT *); |
170 | extern pmap3_string_result * pmap3_getaddr_3_svc(pmap3_mapping *, struct svc_req *); | |
4edd7830 RS |
171 | #define PMAP3_DUMP 4 |
172 | extern pmap3_dump_result * pmap3_dump_3(void *, CLIENT *); | |
173 | extern pmap3_dump_result * pmap3_dump_3_svc(void *, struct svc_req *); | |
b71f7e82 RS |
174 | #define PMAP3_CALLIT 5 |
175 | extern pmap3_call_result * pmap3_callit_3(pmap3_call_args *, CLIENT *); | |
176 | extern pmap3_call_result * pmap3_callit_3_svc(pmap3_call_args *, struct svc_req *); | |
5245608a RS |
177 | #define PMAP3_GETTIME 6 |
178 | extern u_int * pmap3_gettime_3(void *, CLIENT *); | |
179 | extern u_int * pmap3_gettime_3_svc(void *, struct svc_req *); | |
729266a7 RS |
180 | #define PMAP3_UADDR2TADDR 7 |
181 | extern pmap3_netbuf * pmap3_uaddr2taddr_3(char **, CLIENT *); | |
182 | extern pmap3_netbuf * pmap3_uaddr2taddr_3_svc(char **, struct svc_req *); | |
29258a73 | 183 | #define PMAP3_TADDR2UADDR 8 |
24f45c54 RS |
184 | extern struct pmap3_string_result * pmap3_taddr2uaddr_3(pmap3_netbuf *, CLIENT *); |
185 | extern struct pmap3_string_result * pmap3_taddr2uaddr_3_svc(pmap3_netbuf *, struct svc_req *); | |
4edd7830 RS |
186 | extern int pmap_program_3_freeresult (SVCXPRT *, zdrproc_t, caddr_t); |
187 | ||
188 | #else /* K&R C */ | |
189 | #define PMAP3_NULL 0 | |
190 | extern void * pmap3_null_3(); | |
191 | extern void * pmap3_null_3_svc(); | |
d731e94c RS |
192 | #define PMAP3_SET 1 |
193 | extern bool_t * pmap3_set_3(); | |
194 | extern bool_t * pmap3_set_3_svc(); | |
195 | #define PMAP3_UNSET 2 | |
196 | extern bool_t * pmap3_unset_3(); | |
197 | extern bool_t * pmap3_unset_3_svc(); | |
7fbedfde | 198 | #define PMAP3_GETADDR 3 |
24f45c54 RS |
199 | extern pmap3_string_result * pmap3_getaddr_3(); |
200 | extern pmap3_string_result * pmap3_getaddr_3_svc(); | |
4edd7830 RS |
201 | #define PMAP3_DUMP 4 |
202 | extern pmap3_dump_result * pmap3_dump_3(); | |
203 | extern pmap3_dump_result * pmap3_dump_3_svc(); | |
b71f7e82 RS |
204 | #define PMAP3_CALLIT 5 |
205 | extern pmap3_call_result * pmap3_callit_3(); | |
206 | extern pmap3_call_result * pmap3_callit_3_svc(); | |
5245608a RS |
207 | #define PMAP3_GETTIME 6 |
208 | extern u_int * pmap3_gettime_3(); | |
209 | extern u_int * pmap3_gettime_3_svc(); | |
729266a7 RS |
210 | #define PMAP3_UADDR2TADDR 7 |
211 | extern pmap3_netbuf * pmap3_uaddr2taddr_3(); | |
212 | extern pmap3_netbuf * pmap3_uaddr2taddr_3_svc(); | |
29258a73 | 213 | #define PMAP3_TADDR2UADDR 8 |
24f45c54 RS |
214 | extern struct pmap3_string_result * pmap3_taddr2uaddr_3(); |
215 | extern struct pmap3_string_result * pmap3_taddr2uaddr_3_svc(); | |
4edd7830 RS |
216 | extern int pmap_program_3_freeresult (); |
217 | #endif /* K&R C */ | |
763cd6e3 RS |
218 | |
219 | /* the zdr functions */ | |
220 | ||
221 | #if defined(__STDC__) || defined(__cplusplus) | |
4edd7830 RS |
222 | extern bool_t zdr_pmap2_mapping (ZDR *, pmap2_mapping*); |
223 | extern bool_t zdr_pmap2_call_args (ZDR *, pmap2_call_args*); | |
224 | extern bool_t zdr_pmap2_call_result (ZDR *, pmap2_call_result*); | |
225 | extern bool_t zdr_pmap2_mapping_list (ZDR *, pmap2_mapping_list*); | |
226 | extern bool_t zdr_pmap2_dump_result (ZDR *, pmap2_dump_result*); | |
24f45c54 | 227 | extern bool_t zdr_pmap3_string_result (ZDR *, pmap3_string_result*); |
4edd7830 RS |
228 | extern bool_t zdr_pmap3_mapping (ZDR *, pmap3_mapping*); |
229 | extern bool_t zdr_pmap3_mapping_list (ZDR *, pmap3_mapping_list*); | |
230 | extern bool_t zdr_pmap3_dump_result (ZDR *, pmap3_dump_result*); | |
b71f7e82 RS |
231 | extern bool_t zdr_pmap3_call_args (ZDR *, pmap3_call_args*); |
232 | extern bool_t zdr_pmap3_call_result (ZDR *, pmap3_call_result*); | |
729266a7 | 233 | extern bool_t zdr_pmap3_netbuf (ZDR *, pmap3_netbuf*); |
763cd6e3 RS |
234 | |
235 | #else /* K&R C */ | |
4edd7830 RS |
236 | extern bool_t zdr_pmap2_mapping (); |
237 | extern bool_t zdr_pmap2_call_args (); | |
238 | extern bool_t zdr_pmap2_call_result (); | |
239 | extern bool_t zdr_pmap2_mapping_list (); | |
240 | extern bool_t zdr_pmap2_dump_result (); | |
24f45c54 | 241 | extern bool_t zdr_pmap3_string_result (); |
4edd7830 RS |
242 | extern bool_t zdr_pmap3_mapping (); |
243 | extern bool_t zdr_pmap3_mapping_list (); | |
244 | extern bool_t zdr_pmap3_dump_result (); | |
b71f7e82 RS |
245 | extern bool_t zdr_pmap3_call_args (); |
246 | extern bool_t zdr_pmap3_call_result (); | |
729266a7 | 247 | extern bool_t zdr_pmap3_netbuf (); |
763cd6e3 RS |
248 | |
249 | #endif /* K&R C */ | |
250 | ||
251 | #ifdef __cplusplus | |
252 | } | |
253 | #endif | |
254 | ||
255 | #endif /* !_PORTMAP_H_RPCGEN */ |