]> git.saurik.com Git - apple/network_cmds.git/blame - ypserv.tproj/yp.h
network_cmds-176.tar.gz
[apple/network_cmds.git] / ypserv.tproj / yp.h
CommitLineData
b7080c8e
A
1/*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
ac2f15b3
A
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.
b7080c8e
A
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,
ac2f15b3
A
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.
b7080c8e
A
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
42enum 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};
55typedef enum ypstat ypstat;
56#ifdef __cplusplus
57extern "C" bool_t xdr_ypstat(XDR *, ypstat*);
58#elif defined(__STDC__)
59extern bool_t xdr_ypstat(XDR *, ypstat*);
60#else /* Old Style C */
61bool_t xdr_ypstat();
62#endif /* Old Style C */
63
64
65enum 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};
83typedef enum ypxfrstat ypxfrstat;
84#ifdef __cplusplus
85extern "C" bool_t xdr_ypxfrstat(XDR *, ypxfrstat*);
86#elif defined(__STDC__)
87extern bool_t xdr_ypxfrstat(XDR *, ypxfrstat*);
88#else /* Old Style C */
89bool_t xdr_ypxfrstat();
90#endif /* Old Style C */
91
92
93typedef char *domainname;
94#ifdef __cplusplus
95extern "C" bool_t xdr_domainname(XDR *, domainname*);
96#elif defined(__STDC__)
97extern bool_t xdr_domainname(XDR *, domainname*);
98#else /* Old Style C */
99bool_t xdr_domainname();
100#endif /* Old Style C */
101
102
103typedef char *mapname;
104#ifdef __cplusplus
105extern "C" bool_t xdr_mapname(XDR *, mapname*);
106#elif defined(__STDC__)
107extern bool_t xdr_mapname(XDR *, mapname*);
108#else /* Old Style C */
109bool_t xdr_mapname();
110#endif /* Old Style C */
111
112
113typedef char *peername;
114#ifdef __cplusplus
115extern "C" bool_t xdr_peername(XDR *, peername*);
116#elif defined(__STDC__)
117extern bool_t xdr_peername(XDR *, peername*);
118#else /* Old Style C */
119bool_t xdr_peername();
120#endif /* Old Style C */
121
122
123typedef struct {
124 u_int keydat_len;
125 char *keydat_val;
126} keydat;
127#ifdef __cplusplus
128extern "C" bool_t xdr_keydat(XDR *, keydat*);
129#elif defined(__STDC__)
130extern bool_t xdr_keydat(XDR *, keydat*);
131#else /* Old Style C */
132bool_t xdr_keydat();
133#endif /* Old Style C */
134
135
136typedef struct {
137 u_int valdat_len;
138 char *valdat_val;
139} valdat;
140#ifdef __cplusplus
141extern "C" bool_t xdr_valdat(XDR *, valdat*);
142#elif defined(__STDC__)
143extern bool_t xdr_valdat(XDR *, valdat*);
144#else /* Old Style C */
145bool_t xdr_valdat();
146#endif /* Old Style C */
147
148
149struct ypmap_parms {
150 domainname domain;
151 mapname map;
152 u_int32_t ordernum;
153 peername peer;
154};
155typedef struct ypmap_parms ypmap_parms;
156#ifdef __cplusplus
157extern "C" bool_t xdr_ypmap_parms(XDR *, ypmap_parms*);
158#elif defined(__STDC__)
159extern bool_t xdr_ypmap_parms(XDR *, ypmap_parms*);
160#else /* Old Style C */
161bool_t xdr_ypmap_parms();
162#endif /* Old Style C */
163
164
165struct ypreq_key {
166 domainname domain;
167 mapname map;
168 keydat key;
169};
170typedef struct ypreq_key ypreq_key;
171#ifdef __cplusplus
172extern "C" bool_t xdr_ypreq_key(XDR *, ypreq_key*);
173#elif defined(__STDC__)
174extern bool_t xdr_ypreq_key(XDR *, ypreq_key*);
175#else /* Old Style C */
176bool_t xdr_ypreq_key();
177#endif /* Old Style C */
178
179
180struct ypreq_nokey {
181 domainname domain;
182 mapname map;
183};
184typedef struct ypreq_nokey ypreq_nokey;
185#ifdef __cplusplus
186extern "C" bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*);
187#elif defined(__STDC__)
188extern bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*);
189#else /* Old Style C */
190bool_t xdr_ypreq_nokey();
191#endif /* Old Style C */
192
193
194struct ypreq_xfr {
195 ypmap_parms map_parms;
196 u_int transid;
197 u_int prog;
198 u_int port;
199};
200typedef struct ypreq_xfr ypreq_xfr;
201#ifdef __cplusplus
202extern "C" bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*);
203#elif defined(__STDC__)
204extern bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*);
205#else /* Old Style C */
206bool_t xdr_ypreq_xfr();
207#endif /* Old Style C */
208
209
210struct ypresp_val {
211 ypstat stat;
212 valdat val;
213};
214typedef struct ypresp_val ypresp_val;
215#ifdef __cplusplus
216extern "C" bool_t xdr_ypresp_val(XDR *, ypresp_val*);
217#elif defined(__STDC__)
218extern bool_t xdr_ypresp_val(XDR *, ypresp_val*);
219#else /* Old Style C */
220bool_t xdr_ypresp_val();
221#endif /* Old Style C */
222
223
224struct ypresp_key_val {
225 ypstat stat;
226 keydat key;
227 valdat val;
228};
229typedef struct ypresp_key_val ypresp_key_val;
230#ifdef __cplusplus
231extern "C" bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*);
232#elif defined(__STDC__)
233extern bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*);
234#else /* Old Style C */
235bool_t xdr_ypresp_key_val();
236#endif /* Old Style C */
237
238
239struct ypresp_master {
240 ypstat stat;
241 peername peer;
242};
243typedef struct ypresp_master ypresp_master;
244#ifdef __cplusplus
245extern "C" bool_t xdr_ypresp_master(XDR *, ypresp_master*);
246#elif defined(__STDC__)
247extern bool_t xdr_ypresp_master(XDR *, ypresp_master*);
248#else /* Old Style C */
249bool_t xdr_ypresp_master();
250#endif /* Old Style C */
251
252
253struct ypresp_order {
254 ypstat stat;
255 u_int32_t ordernum;
256};
257typedef struct ypresp_order ypresp_order;
258#ifdef __cplusplus
259extern "C" bool_t xdr_ypresp_order(XDR *, ypresp_order*);
260#elif defined(__STDC__)
261extern bool_t xdr_ypresp_order(XDR *, ypresp_order*);
262#else /* Old Style C */
263bool_t xdr_ypresp_order();
264#endif /* Old Style C */
265
266
267struct ypresp_all {
268 bool_t more;
269 union {
270 ypresp_key_val val;
271 } ypresp_all_u;
272};
273typedef struct ypresp_all ypresp_all;
274#ifdef __cplusplus
275extern "C" bool_t xdr_ypresp_all(XDR *, ypresp_all*);
276#elif defined(__STDC__)
277extern bool_t xdr_ypresp_all(XDR *, ypresp_all*);
278#else /* Old Style C */
279bool_t xdr_ypresp_all();
280#endif /* Old Style C */
281
282
283struct ypresp_xfr {
284 u_int transid;
285 ypxfrstat xfrstat;
286};
287typedef struct ypresp_xfr ypresp_xfr;
288#ifdef __cplusplus
289extern "C" bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*);
290#elif defined(__STDC__)
291extern bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*);
292#else /* Old Style C */
293bool_t xdr_ypresp_xfr();
294#endif /* Old Style C */
295
296
297struct ypmaplist {
298 mapname map;
299 struct ypmaplist *next;
300};
301typedef struct ypmaplist ypmaplist;
302#ifdef __cplusplus
303extern "C" bool_t xdr_ypmaplist(XDR *, ypmaplist*);
304#elif defined(__STDC__)
305extern bool_t xdr_ypmaplist(XDR *, ypmaplist*);
306#else /* Old Style C */
307bool_t xdr_ypmaplist();
308#endif /* Old Style C */
309
310
311struct ypresp_maplist {
312 ypstat stat;
313 ypmaplist *maps;
314};
315typedef struct ypresp_maplist ypresp_maplist;
316#ifdef __cplusplus
317extern "C" bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*);
318#elif defined(__STDC__)
319extern bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*);
320#else /* Old Style C */
321bool_t xdr_ypresp_maplist();
322#endif /* Old Style C */
323
324
325enum 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};
343typedef enum yppush_status yppush_status;
344#ifdef __cplusplus
345extern "C" bool_t xdr_yppush_status(XDR *, yppush_status*);
346#elif defined(__STDC__)
347extern bool_t xdr_yppush_status(XDR *, yppush_status*);
348#else /* Old Style C */
349bool_t xdr_yppush_status();
350#endif /* Old Style C */
351
352
353struct yppushresp_xfr {
354 u_int transid;
355 yppush_status status;
356};
357typedef struct yppushresp_xfr yppushresp_xfr;
358#ifdef __cplusplus
359extern "C" bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*);
360#elif defined(__STDC__)
361extern bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*);
362#else /* Old Style C */
363bool_t xdr_yppushresp_xfr();
364#endif /* Old Style C */
365
366
367enum ypbind_resptype {
368 YPBIND_SUCC_VAL = 1,
369 YPBIND_FAIL_VAL = 2,
370};
371typedef enum ypbind_resptype ypbind_resptype;
372#ifdef __cplusplus
373extern "C" bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*);
374#elif defined(__STDC__)
375extern bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*);
376#else /* Old Style C */
377bool_t xdr_ypbind_resptype();
378#endif /* Old Style C */
379
380
381struct ypbind_binding {
382 char ypbind_binding_addr[4];
383 char ypbind_binding_port[2];
384};
385typedef struct ypbind_binding ypbind_binding;
386#ifdef __cplusplus
387extern "C" bool_t xdr_ypbind_binding(XDR *, ypbind_binding*);
388#elif defined(__STDC__)
389extern bool_t xdr_ypbind_binding(XDR *, ypbind_binding*);
390#else /* Old Style C */
391bool_t xdr_ypbind_binding();
392#endif /* Old Style C */
393
394
395struct ypbind_resp {
396 ypbind_resptype ypbind_status;
397 union {
398 u_int ypbind_error;
399 ypbind_binding ypbind_bindinfo;
400 } ypbind_resp_u;
401};
402typedef struct ypbind_resp ypbind_resp;
403#ifdef __cplusplus
404extern "C" bool_t xdr_ypbind_resp(XDR *, ypbind_resp*);
405#elif defined(__STDC__)
406extern bool_t xdr_ypbind_resp(XDR *, ypbind_resp*);
407#else /* Old Style C */
408bool_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
415struct ypbind_setdom {
416 domainname ypsetdom_domain;
417 ypbind_binding ypsetdom_binding;
418 u_int ypsetdom_vers;
419};
420typedef struct ypbind_setdom ypbind_setdom;
421#ifdef __cplusplus
422extern "C" bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*);
423#elif defined(__STDC__)
424extern bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*);
425#else /* Old Style C */
426bool_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)
435extern "C" void * ypproc_null_2(void *, CLIENT *);
436extern "C" void * ypproc_null_2_svc(void *, struct svc_req *);
437#define YPPROC_DOMAIN ((u_long)1)
438extern "C" bool_t * ypproc_domain_2(domainname *, CLIENT *);
439extern "C" bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *);
440#define YPPROC_DOMAIN_NONACK ((u_long)2)
441extern "C" bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *);
442extern "C" bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *);
443#define YPPROC_MATCH ((u_long)3)
444extern "C" ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *);
445extern "C" ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *);
446#define YPPROC_FIRST ((u_long)4)
447extern "C" ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *);
448extern "C" ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *);
449#define YPPROC_NEXT ((u_long)5)
450extern "C" ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *);
451extern "C" ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *);
452#define YPPROC_XFR ((u_long)6)
453extern "C" ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *);
454extern "C" ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *);
455#define YPPROC_CLEAR ((u_long)7)
456extern "C" void * ypproc_clear_2(void *, CLIENT *);
457extern "C" void * ypproc_clear_2_svc(void *, struct svc_req *);
458#define YPPROC_ALL ((u_long)8)
459extern "C" ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *);
460extern "C" ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *);
461#define YPPROC_MASTER ((u_long)9)
462extern "C" ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *);
463extern "C" ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *);
464#define YPPROC_ORDER ((u_long)10)
465extern "C" ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *);
466extern "C" ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *);
467#define YPPROC_MAPLIST ((u_long)11)
468extern "C" ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *);
469extern "C" ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *);
470
471#elif defined(__STDC__)
472#define YPPROC_NULL ((u_long)0)
473extern void * ypproc_null_2(void *, CLIENT *);
474extern void * ypproc_null_2_svc(void *, struct svc_req *);
475#define YPPROC_DOMAIN ((u_long)1)
476extern bool_t * ypproc_domain_2(domainname *, CLIENT *);
477extern bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *);
478#define YPPROC_DOMAIN_NONACK ((u_long)2)
479extern bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *);
480extern bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *);
481#define YPPROC_MATCH ((u_long)3)
482extern ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *);
483extern ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *);
484#define YPPROC_FIRST ((u_long)4)
485extern ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *);
486extern ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *);
487#define YPPROC_NEXT ((u_long)5)
488extern ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *);
489extern ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *);
490#define YPPROC_XFR ((u_long)6)
491extern ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *);
492extern ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *);
493#define YPPROC_CLEAR ((u_long)7)
494extern void * ypproc_clear_2(void *, CLIENT *);
495extern void * ypproc_clear_2_svc(void *, struct svc_req *);
496#define YPPROC_ALL ((u_long)8)
497extern ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *);
498extern ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *);
499#define YPPROC_MASTER ((u_long)9)
500extern ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *);
501extern ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *);
502#define YPPROC_ORDER ((u_long)10)
503extern ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *);
504extern ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *);
505#define YPPROC_MAPLIST ((u_long)11)
506extern ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *);
507extern ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *);
508
509#else /* Old Style C */
510#define YPPROC_NULL ((u_long)0)
511extern void * ypproc_null_2();
512extern void * ypproc_null_2_svc();
513#define YPPROC_DOMAIN ((u_long)1)
514extern bool_t * ypproc_domain_2();
515extern bool_t * ypproc_domain_2_svc();
516#define YPPROC_DOMAIN_NONACK ((u_long)2)
517extern bool_t * ypproc_domain_nonack_2();
518extern bool_t * ypproc_domain_nonack_2_svc();
519#define YPPROC_MATCH ((u_long)3)
520extern ypresp_val * ypproc_match_2();
521extern ypresp_val * ypproc_match_2_svc();
522#define YPPROC_FIRST ((u_long)4)
523extern ypresp_key_val * ypproc_first_2();
524extern ypresp_key_val * ypproc_first_2_svc();
525#define YPPROC_NEXT ((u_long)5)
526extern ypresp_key_val * ypproc_next_2();
527extern ypresp_key_val * ypproc_next_2_svc();
528#define YPPROC_XFR ((u_long)6)
529extern ypresp_xfr * ypproc_xfr_2();
530extern ypresp_xfr * ypproc_xfr_2_svc();
531#define YPPROC_CLEAR ((u_long)7)
532extern void * ypproc_clear_2();
533extern void * ypproc_clear_2_svc();
534#define YPPROC_ALL ((u_long)8)
535extern ypresp_all * ypproc_all_2();
536extern ypresp_all * ypproc_all_2_svc();
537#define YPPROC_MASTER ((u_long)9)
538extern ypresp_master * ypproc_master_2();
539extern ypresp_master * ypproc_master_2_svc();
540#define YPPROC_ORDER ((u_long)10)
541extern ypresp_order * ypproc_order_2();
542extern ypresp_order * ypproc_order_2_svc();
543#define YPPROC_MAPLIST ((u_long)11)
544extern ypresp_maplist * ypproc_maplist_2();
545extern 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)
553extern "C" void * yppushproc_null_1(void *, CLIENT *);
554extern "C" void * yppushproc_null_1_svc(void *, struct svc_req *);
555#define YPPUSHPROC_XFRRESP ((u_long)1)
556extern "C" yppushresp_xfr * yppushproc_xfrresp_1(void *, CLIENT *);
557extern "C" yppushresp_xfr * yppushproc_xfrresp_1_svc(void *, struct svc_req *);
558
559#elif defined(__STDC__)
560#define YPPUSHPROC_NULL ((u_long)0)
561extern void * yppushproc_null_1(void *, CLIENT *);
562extern void * yppushproc_null_1_svc(void *, struct svc_req *);
563#define YPPUSHPROC_XFRRESP ((u_long)1)
564extern yppushresp_xfr * yppushproc_xfrresp_1(void *, CLIENT *);
565extern yppushresp_xfr * yppushproc_xfrresp_1_svc(void *, struct svc_req *);
566
567#else /* Old Style C */
568#define YPPUSHPROC_NULL ((u_long)0)
569extern void * yppushproc_null_1();
570extern void * yppushproc_null_1_svc();
571#define YPPUSHPROC_XFRRESP ((u_long)1)
572extern yppushresp_xfr * yppushproc_xfrresp_1();
573extern 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)
581extern "C" void * ypbindproc_null_2(void *, CLIENT *);
582extern "C" void * ypbindproc_null_2_svc(void *, struct svc_req *);
583#define YPBINDPROC_DOMAIN ((u_long)1)
584extern "C" ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *);
585extern "C" ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *);
586#define YPBINDPROC_SETDOM ((u_long)2)
587extern "C" void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *);
588extern "C" void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *);
589
590#elif defined(__STDC__)
591#define YPBINDPROC_NULL ((u_long)0)
592extern void * ypbindproc_null_2(void *, CLIENT *);
593extern void * ypbindproc_null_2_svc(void *, struct svc_req *);
594#define YPBINDPROC_DOMAIN ((u_long)1)
595extern ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *);
596extern ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *);
597#define YPBINDPROC_SETDOM ((u_long)2)
598extern void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *);
599extern void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *);
600
601#else /* Old Style C */
602#define YPBINDPROC_NULL ((u_long)0)
603extern void * ypbindproc_null_2();
604extern void * ypbindproc_null_2_svc();
605#define YPBINDPROC_DOMAIN ((u_long)1)
606extern ypbind_resp * ypbindproc_domain_2();
607extern ypbind_resp * ypbindproc_domain_2_svc();
608#define YPBINDPROC_SETDOM ((u_long)2)
609extern void * ypbindproc_setdom_2();
610extern void * ypbindproc_setdom_2_svc();
611#endif /* Old Style C */
612
613#endif /* !_YP_H_RPCGEN */