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