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