]> git.saurik.com Git - apple/network_cmds.git/blob - ypserv.tproj/yp.h
network_cmds-245.1.3.tar.gz
[apple/network_cmds.git] / ypserv.tproj / yp.h
1 /*
2 * Copyright (c) 1999 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 /* $OpenBSD: yp.h,v 1.5 1997/07/25 20:12:31 mickey Exp $ */
24
25 /*
26 * Please do not edit this file.
27 * It was generated using rpcgen.
28 */
29
30 #ifndef _YP_H_RPCGEN
31 #define _YP_H_RPCGEN
32
33 #include <rpc/rpc.h>
34
35 #define YPMAXRECORD 1024
36 #define YPMAXDOMAIN 64
37 #define YPMAXMAP 64
38 #define YPMAXPEER 64
39
40 enum ypstat {
41 YP_TRUE = 1,
42 YP_NOMORE = 2,
43 YP_FALSE = 0,
44 YP_NOMAP = -1,
45 YP_NODOM = -2,
46 YP_NOKEY = -3,
47 YP_BADOP = -4,
48 YP_BADDB = -5,
49 YP_YPERR = -6,
50 YP_BADARGS = -7,
51 YP_VERS = -8,
52 };
53 typedef enum ypstat ypstat;
54 #ifdef __cplusplus
55 extern "C" bool_t xdr_ypstat(XDR *, ypstat*);
56 #elif defined(__STDC__)
57 extern bool_t xdr_ypstat(XDR *, ypstat*);
58 #else /* Old Style C */
59 bool_t xdr_ypstat();
60 #endif /* Old Style C */
61
62
63 enum ypxfrstat {
64 YPXFR_SUCC = 1,
65 YPXFR_AGE = 2,
66 YPXFR_NOMAP = -1,
67 YPXFR_NODOM = -2,
68 YPXFR_RSRC = -3,
69 YPXFR_RPC = -4,
70 YPXFR_MADDR = -5,
71 YPXFR_YPERR = -6,
72 YPXFR_BADARGS = -7,
73 YPXFR_DBM = -8,
74 YPXFR_FILE = -9,
75 YPXFR_SKEW = -10,
76 YPXFR_CLEAR = -11,
77 YPXFR_FORCE = -12,
78 YPXFR_XFRERR = -13,
79 YPXFR_REFUSED = -14,
80 };
81 typedef enum ypxfrstat ypxfrstat;
82 #ifdef __cplusplus
83 extern "C" bool_t xdr_ypxfrstat(XDR *, ypxfrstat*);
84 #elif defined(__STDC__)
85 extern bool_t xdr_ypxfrstat(XDR *, ypxfrstat*);
86 #else /* Old Style C */
87 bool_t xdr_ypxfrstat();
88 #endif /* Old Style C */
89
90
91 typedef char *domainname;
92 #ifdef __cplusplus
93 extern "C" bool_t xdr_domainname(XDR *, domainname*);
94 #elif defined(__STDC__)
95 extern bool_t xdr_domainname(XDR *, domainname*);
96 #else /* Old Style C */
97 bool_t xdr_domainname();
98 #endif /* Old Style C */
99
100
101 typedef char *mapname;
102 #ifdef __cplusplus
103 extern "C" bool_t xdr_mapname(XDR *, mapname*);
104 #elif defined(__STDC__)
105 extern bool_t xdr_mapname(XDR *, mapname*);
106 #else /* Old Style C */
107 bool_t xdr_mapname();
108 #endif /* Old Style C */
109
110
111 typedef char *peername;
112 #ifdef __cplusplus
113 extern "C" bool_t xdr_peername(XDR *, peername*);
114 #elif defined(__STDC__)
115 extern bool_t xdr_peername(XDR *, peername*);
116 #else /* Old Style C */
117 bool_t xdr_peername();
118 #endif /* Old Style C */
119
120
121 typedef struct {
122 u_int keydat_len;
123 char *keydat_val;
124 } keydat;
125 #ifdef __cplusplus
126 extern "C" bool_t xdr_keydat(XDR *, keydat*);
127 #elif defined(__STDC__)
128 extern bool_t xdr_keydat(XDR *, keydat*);
129 #else /* Old Style C */
130 bool_t xdr_keydat();
131 #endif /* Old Style C */
132
133
134 typedef struct {
135 u_int valdat_len;
136 char *valdat_val;
137 } valdat;
138 #ifdef __cplusplus
139 extern "C" bool_t xdr_valdat(XDR *, valdat*);
140 #elif defined(__STDC__)
141 extern bool_t xdr_valdat(XDR *, valdat*);
142 #else /* Old Style C */
143 bool_t xdr_valdat();
144 #endif /* Old Style C */
145
146
147 struct ypmap_parms {
148 domainname domain;
149 mapname map;
150 u_int32_t ordernum;
151 peername peer;
152 };
153 typedef struct ypmap_parms ypmap_parms;
154 #ifdef __cplusplus
155 extern "C" bool_t xdr_ypmap_parms(XDR *, ypmap_parms*);
156 #elif defined(__STDC__)
157 extern bool_t xdr_ypmap_parms(XDR *, ypmap_parms*);
158 #else /* Old Style C */
159 bool_t xdr_ypmap_parms();
160 #endif /* Old Style C */
161
162
163 struct ypreq_key {
164 domainname domain;
165 mapname map;
166 keydat key;
167 };
168 typedef struct ypreq_key ypreq_key;
169 #ifdef __cplusplus
170 extern "C" bool_t xdr_ypreq_key(XDR *, ypreq_key*);
171 #elif defined(__STDC__)
172 extern bool_t xdr_ypreq_key(XDR *, ypreq_key*);
173 #else /* Old Style C */
174 bool_t xdr_ypreq_key();
175 #endif /* Old Style C */
176
177
178 struct ypreq_nokey {
179 domainname domain;
180 mapname map;
181 };
182 typedef struct ypreq_nokey ypreq_nokey;
183 #ifdef __cplusplus
184 extern "C" bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*);
185 #elif defined(__STDC__)
186 extern bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*);
187 #else /* Old Style C */
188 bool_t xdr_ypreq_nokey();
189 #endif /* Old Style C */
190
191
192 struct ypreq_xfr {
193 ypmap_parms map_parms;
194 u_int transid;
195 u_int prog;
196 u_int port;
197 };
198 typedef struct ypreq_xfr ypreq_xfr;
199 #ifdef __cplusplus
200 extern "C" bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*);
201 #elif defined(__STDC__)
202 extern bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*);
203 #else /* Old Style C */
204 bool_t xdr_ypreq_xfr();
205 #endif /* Old Style C */
206
207
208 struct ypresp_val {
209 ypstat stat;
210 valdat val;
211 };
212 typedef struct ypresp_val ypresp_val;
213 #ifdef __cplusplus
214 extern "C" bool_t xdr_ypresp_val(XDR *, ypresp_val*);
215 #elif defined(__STDC__)
216 extern bool_t xdr_ypresp_val(XDR *, ypresp_val*);
217 #else /* Old Style C */
218 bool_t xdr_ypresp_val();
219 #endif /* Old Style C */
220
221
222 struct ypresp_key_val {
223 ypstat stat;
224 keydat key;
225 valdat val;
226 };
227 typedef struct ypresp_key_val ypresp_key_val;
228 #ifdef __cplusplus
229 extern "C" bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*);
230 #elif defined(__STDC__)
231 extern bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*);
232 #else /* Old Style C */
233 bool_t xdr_ypresp_key_val();
234 #endif /* Old Style C */
235
236
237 struct ypresp_master {
238 ypstat stat;
239 peername peer;
240 };
241 typedef struct ypresp_master ypresp_master;
242 #ifdef __cplusplus
243 extern "C" bool_t xdr_ypresp_master(XDR *, ypresp_master*);
244 #elif defined(__STDC__)
245 extern bool_t xdr_ypresp_master(XDR *, ypresp_master*);
246 #else /* Old Style C */
247 bool_t xdr_ypresp_master();
248 #endif /* Old Style C */
249
250
251 struct ypresp_order {
252 ypstat stat;
253 u_int32_t ordernum;
254 };
255 typedef struct ypresp_order ypresp_order;
256 #ifdef __cplusplus
257 extern "C" bool_t xdr_ypresp_order(XDR *, ypresp_order*);
258 #elif defined(__STDC__)
259 extern bool_t xdr_ypresp_order(XDR *, ypresp_order*);
260 #else /* Old Style C */
261 bool_t xdr_ypresp_order();
262 #endif /* Old Style C */
263
264
265 struct ypresp_all {
266 bool_t more;
267 union {
268 ypresp_key_val val;
269 } ypresp_all_u;
270 };
271 typedef struct ypresp_all ypresp_all;
272 #ifdef __cplusplus
273 extern "C" bool_t xdr_ypresp_all(XDR *, ypresp_all*);
274 #elif defined(__STDC__)
275 extern bool_t xdr_ypresp_all(XDR *, ypresp_all*);
276 #else /* Old Style C */
277 bool_t xdr_ypresp_all();
278 #endif /* Old Style C */
279
280
281 struct ypresp_xfr {
282 u_int transid;
283 ypxfrstat xfrstat;
284 };
285 typedef struct ypresp_xfr ypresp_xfr;
286 #ifdef __cplusplus
287 extern "C" bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*);
288 #elif defined(__STDC__)
289 extern bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*);
290 #else /* Old Style C */
291 bool_t xdr_ypresp_xfr();
292 #endif /* Old Style C */
293
294
295 struct ypmaplist {
296 mapname map;
297 struct ypmaplist *next;
298 };
299 typedef struct ypmaplist ypmaplist;
300 #ifdef __cplusplus
301 extern "C" bool_t xdr_ypmaplist(XDR *, ypmaplist*);
302 #elif defined(__STDC__)
303 extern bool_t xdr_ypmaplist(XDR *, ypmaplist*);
304 #else /* Old Style C */
305 bool_t xdr_ypmaplist();
306 #endif /* Old Style C */
307
308
309 struct ypresp_maplist {
310 ypstat stat;
311 ypmaplist *maps;
312 };
313 typedef struct ypresp_maplist ypresp_maplist;
314 #ifdef __cplusplus
315 extern "C" bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*);
316 #elif defined(__STDC__)
317 extern bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*);
318 #else /* Old Style C */
319 bool_t xdr_ypresp_maplist();
320 #endif /* Old Style C */
321
322
323 enum yppush_status {
324 YPPUSH_SUCC = 1,
325 YPPUSH_AGE = 2,
326 YPPUSH_NOMAP = -1,
327 YPPUSH_NODOM = -2,
328 YPPUSH_RSRC = -3,
329 YPPUSH_RPC = -4,
330 YPPUSH_MADDR = -5,
331 YPPUSH_YPERR = -6,
332 YPPUSH_BADARGS = -7,
333 YPPUSH_DBM = -8,
334 YPPUSH_FILE = -9,
335 YPPUSH_SKEW = -10,
336 YPPUSH_CLEAR = -11,
337 YPPUSH_FORCE = -12,
338 YPPUSH_XFRERR = -13,
339 YPPUSH_REFUSED = -14,
340 };
341 typedef enum yppush_status yppush_status;
342 #ifdef __cplusplus
343 extern "C" bool_t xdr_yppush_status(XDR *, yppush_status*);
344 #elif defined(__STDC__)
345 extern bool_t xdr_yppush_status(XDR *, yppush_status*);
346 #else /* Old Style C */
347 bool_t xdr_yppush_status();
348 #endif /* Old Style C */
349
350
351 struct yppushresp_xfr {
352 u_int transid;
353 yppush_status status;
354 };
355 typedef struct yppushresp_xfr yppushresp_xfr;
356 #ifdef __cplusplus
357 extern "C" bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*);
358 #elif defined(__STDC__)
359 extern bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*);
360 #else /* Old Style C */
361 bool_t xdr_yppushresp_xfr();
362 #endif /* Old Style C */
363
364
365 enum ypbind_resptype {
366 YPBIND_SUCC_VAL = 1,
367 YPBIND_FAIL_VAL = 2,
368 };
369 typedef enum ypbind_resptype ypbind_resptype;
370 #ifdef __cplusplus
371 extern "C" bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*);
372 #elif defined(__STDC__)
373 extern bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*);
374 #else /* Old Style C */
375 bool_t xdr_ypbind_resptype();
376 #endif /* Old Style C */
377
378
379 struct ypbind_binding {
380 char ypbind_binding_addr[4];
381 char ypbind_binding_port[2];
382 };
383 typedef struct ypbind_binding ypbind_binding;
384 #ifdef __cplusplus
385 extern "C" bool_t xdr_ypbind_binding(XDR *, ypbind_binding*);
386 #elif defined(__STDC__)
387 extern bool_t xdr_ypbind_binding(XDR *, ypbind_binding*);
388 #else /* Old Style C */
389 bool_t xdr_ypbind_binding();
390 #endif /* Old Style C */
391
392
393 struct ypbind_resp {
394 ypbind_resptype ypbind_status;
395 union {
396 u_int ypbind_error;
397 ypbind_binding ypbind_bindinfo;
398 } ypbind_resp_u;
399 };
400 typedef struct ypbind_resp ypbind_resp;
401 #ifdef __cplusplus
402 extern "C" bool_t xdr_ypbind_resp(XDR *, ypbind_resp*);
403 #elif defined(__STDC__)
404 extern bool_t xdr_ypbind_resp(XDR *, ypbind_resp*);
405 #else /* Old Style C */
406 bool_t xdr_ypbind_resp();
407 #endif /* Old Style C */
408
409 #define YPBIND_ERR_ERR 1
410 #define YPBIND_ERR_NOSERV 2
411 #define YPBIND_ERR_RESC 3
412
413 struct ypbind_setdom {
414 domainname ypsetdom_domain;
415 ypbind_binding ypsetdom_binding;
416 u_int ypsetdom_vers;
417 };
418 typedef struct ypbind_setdom ypbind_setdom;
419 #ifdef __cplusplus
420 extern "C" bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*);
421 #elif defined(__STDC__)
422 extern bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*);
423 #else /* Old Style C */
424 bool_t xdr_ypbind_setdom();
425 #endif /* Old Style C */
426
427
428 #define YPPROG ((u_long)100004)
429 #define YPVERS ((u_long)2)
430
431 #ifdef __cplusplus
432 #define YPPROC_NULL ((u_long)0)
433 extern "C" void * ypproc_null_2(void *, CLIENT *);
434 extern "C" void * ypproc_null_2_svc(void *, struct svc_req *);
435 #define YPPROC_DOMAIN ((u_long)1)
436 extern "C" bool_t * ypproc_domain_2(domainname *, CLIENT *);
437 extern "C" bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *);
438 #define YPPROC_DOMAIN_NONACK ((u_long)2)
439 extern "C" bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *);
440 extern "C" bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *);
441 #define YPPROC_MATCH ((u_long)3)
442 extern "C" ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *);
443 extern "C" ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *);
444 #define YPPROC_FIRST ((u_long)4)
445 extern "C" ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *);
446 extern "C" ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *);
447 #define YPPROC_NEXT ((u_long)5)
448 extern "C" ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *);
449 extern "C" ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *);
450 #define YPPROC_XFR ((u_long)6)
451 extern "C" ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *);
452 extern "C" ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *);
453 #define YPPROC_CLEAR ((u_long)7)
454 extern "C" void * ypproc_clear_2(void *, CLIENT *);
455 extern "C" void * ypproc_clear_2_svc(void *, struct svc_req *);
456 #define YPPROC_ALL ((u_long)8)
457 extern "C" ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *);
458 extern "C" ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *);
459 #define YPPROC_MASTER ((u_long)9)
460 extern "C" ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *);
461 extern "C" ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *);
462 #define YPPROC_ORDER ((u_long)10)
463 extern "C" ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *);
464 extern "C" ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *);
465 #define YPPROC_MAPLIST ((u_long)11)
466 extern "C" ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *);
467 extern "C" ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *);
468
469 #elif defined(__STDC__)
470 #define YPPROC_NULL ((u_long)0)
471 extern void * ypproc_null_2(void *, CLIENT *);
472 extern void * ypproc_null_2_svc(void *, struct svc_req *);
473 #define YPPROC_DOMAIN ((u_long)1)
474 extern bool_t * ypproc_domain_2(domainname *, CLIENT *);
475 extern bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *);
476 #define YPPROC_DOMAIN_NONACK ((u_long)2)
477 extern bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *);
478 extern bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *);
479 #define YPPROC_MATCH ((u_long)3)
480 extern ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *);
481 extern ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *);
482 #define YPPROC_FIRST ((u_long)4)
483 extern ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *);
484 extern ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *);
485 #define YPPROC_NEXT ((u_long)5)
486 extern ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *);
487 extern ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *);
488 #define YPPROC_XFR ((u_long)6)
489 extern ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *);
490 extern ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *);
491 #define YPPROC_CLEAR ((u_long)7)
492 extern void * ypproc_clear_2(void *, CLIENT *);
493 extern void * ypproc_clear_2_svc(void *, struct svc_req *);
494 #define YPPROC_ALL ((u_long)8)
495 extern ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *);
496 extern ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *);
497 #define YPPROC_MASTER ((u_long)9)
498 extern ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *);
499 extern ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *);
500 #define YPPROC_ORDER ((u_long)10)
501 extern ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *);
502 extern ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *);
503 #define YPPROC_MAPLIST ((u_long)11)
504 extern ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *);
505 extern ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *);
506
507 #else /* Old Style C */
508 #define YPPROC_NULL ((u_long)0)
509 extern void * ypproc_null_2();
510 extern void * ypproc_null_2_svc();
511 #define YPPROC_DOMAIN ((u_long)1)
512 extern bool_t * ypproc_domain_2();
513 extern bool_t * ypproc_domain_2_svc();
514 #define YPPROC_DOMAIN_NONACK ((u_long)2)
515 extern bool_t * ypproc_domain_nonack_2();
516 extern bool_t * ypproc_domain_nonack_2_svc();
517 #define YPPROC_MATCH ((u_long)3)
518 extern ypresp_val * ypproc_match_2();
519 extern ypresp_val * ypproc_match_2_svc();
520 #define YPPROC_FIRST ((u_long)4)
521 extern ypresp_key_val * ypproc_first_2();
522 extern ypresp_key_val * ypproc_first_2_svc();
523 #define YPPROC_NEXT ((u_long)5)
524 extern ypresp_key_val * ypproc_next_2();
525 extern ypresp_key_val * ypproc_next_2_svc();
526 #define YPPROC_XFR ((u_long)6)
527 extern ypresp_xfr * ypproc_xfr_2();
528 extern ypresp_xfr * ypproc_xfr_2_svc();
529 #define YPPROC_CLEAR ((u_long)7)
530 extern void * ypproc_clear_2();
531 extern void * ypproc_clear_2_svc();
532 #define YPPROC_ALL ((u_long)8)
533 extern ypresp_all * ypproc_all_2();
534 extern ypresp_all * ypproc_all_2_svc();
535 #define YPPROC_MASTER ((u_long)9)
536 extern ypresp_master * ypproc_master_2();
537 extern ypresp_master * ypproc_master_2_svc();
538 #define YPPROC_ORDER ((u_long)10)
539 extern ypresp_order * ypproc_order_2();
540 extern ypresp_order * ypproc_order_2_svc();
541 #define YPPROC_MAPLIST ((u_long)11)
542 extern ypresp_maplist * ypproc_maplist_2();
543 extern ypresp_maplist * ypproc_maplist_2_svc();
544 #endif /* Old Style C */
545
546 #define YPPUSH_XFRRESPPROG ((u_long)0x40000000)
547 #define YPPUSH_XFRRESPVERS ((u_long)1)
548
549 #ifdef __cplusplus
550 #define YPPUSHPROC_NULL ((u_long)0)
551 extern "C" void * yppushproc_null_1(void *, CLIENT *);
552 extern "C" void * yppushproc_null_1_svc(void *, struct svc_req *);
553 #define YPPUSHPROC_XFRRESP ((u_long)1)
554 extern "C" yppushresp_xfr * yppushproc_xfrresp_1(void *, CLIENT *);
555 extern "C" yppushresp_xfr * yppushproc_xfrresp_1_svc(void *, struct svc_req *);
556
557 #elif defined(__STDC__)
558 #define YPPUSHPROC_NULL ((u_long)0)
559 extern void * yppushproc_null_1(void *, CLIENT *);
560 extern void * yppushproc_null_1_svc(void *, struct svc_req *);
561 #define YPPUSHPROC_XFRRESP ((u_long)1)
562 extern yppushresp_xfr * yppushproc_xfrresp_1(void *, CLIENT *);
563 extern yppushresp_xfr * yppushproc_xfrresp_1_svc(void *, struct svc_req *);
564
565 #else /* Old Style C */
566 #define YPPUSHPROC_NULL ((u_long)0)
567 extern void * yppushproc_null_1();
568 extern void * yppushproc_null_1_svc();
569 #define YPPUSHPROC_XFRRESP ((u_long)1)
570 extern yppushresp_xfr * yppushproc_xfrresp_1();
571 extern yppushresp_xfr * yppushproc_xfrresp_1_svc();
572 #endif /* Old Style C */
573
574 #define YPBINDPROG ((u_long)100007)
575 #define YPBINDVERS ((u_long)2)
576
577 #ifdef __cplusplus
578 #define YPBINDPROC_NULL ((u_long)0)
579 extern "C" void * ypbindproc_null_2(void *, CLIENT *);
580 extern "C" void * ypbindproc_null_2_svc(void *, struct svc_req *);
581 #define YPBINDPROC_DOMAIN ((u_long)1)
582 extern "C" ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *);
583 extern "C" ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *);
584 #define YPBINDPROC_SETDOM ((u_long)2)
585 extern "C" void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *);
586 extern "C" void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *);
587
588 #elif defined(__STDC__)
589 #define YPBINDPROC_NULL ((u_long)0)
590 extern void * ypbindproc_null_2(void *, CLIENT *);
591 extern void * ypbindproc_null_2_svc(void *, struct svc_req *);
592 #define YPBINDPROC_DOMAIN ((u_long)1)
593 extern ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *);
594 extern ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *);
595 #define YPBINDPROC_SETDOM ((u_long)2)
596 extern void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *);
597 extern void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *);
598
599 #else /* Old Style C */
600 #define YPBINDPROC_NULL ((u_long)0)
601 extern void * ypbindproc_null_2();
602 extern void * ypbindproc_null_2_svc();
603 #define YPBINDPROC_DOMAIN ((u_long)1)
604 extern ypbind_resp * ypbindproc_domain_2();
605 extern ypbind_resp * ypbindproc_domain_2_svc();
606 #define YPBINDPROC_SETDOM ((u_long)2)
607 extern void * ypbindproc_setdom_2();
608 extern void * ypbindproc_setdom_2_svc();
609 #endif /* Old Style C */
610
611 #endif /* !_YP_H_RPCGEN */