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: ypv1.h,v 1.2 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 _YPV1_H_RPCGEN 32#define _YPV1_H_RPCGEN 33 34#include <rpc/rpc.h> 35 36#define YPOLDVERS ((u_long)1) 37 38enum ypreqtype { 39 YPREQ_KEY = 1, 40 YPREQ_NOKEY = 2, 41 YPREQ_MAP_PARMS = 3 42}; 43typedef enum ypreqtype ypreqtype; 44#ifdef __cplusplus 45extern "C" bool_t xdr_ypreqtype(XDR *, ypreqtype*); 46#elif defined(__STDC__) 47extern bool_t xdr_ypreqtype(XDR *, ypreqtype*); 48#else /* Old Style C */ 49bool_t xdr_ypreqtype(); 50#endif /* Old Style C */ 51 52typedef struct { 53 ypreqtype yp_reqtype; 54 union { 55 struct ypreq_key yp_req_keytype; 56 struct ypreq_nokey yp_req_nokeytype; 57 struct ypmap_parms yp_req_map_parmstype; 58 }yp_reqbody; 59} yprequest; 60#ifdef __cplusplus 61extern "C" bool_t xdr_yprequest(XDR *, yprequest*); 62#elif defined(__STDC__) 63extern bool_t xdr_yprequest(XDR *, yprequest*); 64#else /* Old Style C */ 65bool_t xdr_yprequest(); 66#endif /* Old Style C */ 67 68#define YPMATCH_REQTYPE YPREQ_KEY 69#define ypmatch_req_domain yp_reqbody.yp_req_keytype.domain 70#define ypmatch_req_map yp_reqbody.yp_req_keytype.map 71#define ypmatch_req_keydat yp_reqbody.yp_req_keytype.key 72#define ypmatch_req_keyptr yp_reqbody.yp_req_keytype.key.keydat_val 73#define ypmatch_req_keysize yp_reqbody.yp_req_keytype.key.keydat_len 74 75#define YPFIRST_REQTYPE YPREQ_NOKEY 76#define ypfirst_req_domain yp_reqbody.yp_req_nokeytype.domain 77#define ypfirst_req_map yp_reqbody.yp_req_nokeytype.map 78 79#define YPNEXT_REQTYPE YPREQ_KEY 80#define ypnext_req_domain yp_reqbody.yp_req_keytype.domain 81#define ypnext_req_map yp_reqbody.yp_req_keytype.map 82#define ypnext_req_keydat yp_reqbody.yp_req_keytype.key 83#define ypnext_req_keyptr yp_reqbody.yp_req_keytype.key.keydat_val 84#define ypnext_req_keysize yp_reqbody.yp_req_keytype.key.keydat_len 85 86#define YPPUSH_REQTYPE YPREQ_NOKEY 87#define yppush_req_domain yp_reqbody.yp_req_nokeytype.domain 88#define yppush_req_map yp_reqbody.yp_req_nokeytype.map 89 90#define YPPULL_REQTYPE YPREQ_NOKEY 91#define yppull_req_domain yp_reqbody.yp_req_nokeytype.domain 92#define yppull_req_map yp_reqbody.yp_req_nokeytype.map 93 94#define YPPOLL_REQTYPE YPREQ_NOKEY 95#define yppoll_req_domain yp_reqbody.yp_req_nokeytype.domain 96#define yppoll_req_map yp_reqbody.yp_req_nokeytype.map 97 98#define YPGET_REQTYPE YPREQ_MAP_PARMS 99#define ypget_req_domain yp_reqbody.yp_req_map_parmstype.domain 100#define ypget_req_map yp_reqbody.yp_req_map_parmstype.map 101#define ypget_req_ordernum yp_reqbody.yp_req_map_parmstype.ordernum 102#define ypget_req_owner yp_reqbody.yp_req_map_parmstype.peer 103 104enum ypresptype { 105 YPRESP_VAL = 1, 106 YPRESP_KEY_VAL = 2, 107 YPRESP_MAP_PARMS = 3 108}; 109typedef enum ypresptype ypresptype; 110#ifdef __cplusplus 111extern "C" bool_t xdr_ypresptype(XDR *, ypresptype*); 112#elif defined(__STDC__) 113extern bool_t xdr_ypresptype(XDR *, ypresptype*); 114#else /* Old Style C */ 115bool_t xdr_ypresptype(); 116#endif /* Old Style C */ 117 118typedef struct { 119 ypresptype yp_resptype; 120 union { 121 struct ypresp_val yp_resp_valtype; 122 struct ypresp_key_val yp_resp_key_valtype; 123 struct ypmap_parms yp_resp_map_parmstype; 124 } yp_respbody; 125} ypresponse; 126#ifdef __cplusplus 127extern "C" bool_t xdr_ypresponse(XDR *, ypresponse*); 128#elif defined(__STDC__) 129extern bool_t xdr_ypresponse(XDR *, ypresponse*); 130#else /* Old Style C */ 131bool_t xdr_ypresponse(); 132#endif /* Old Style C */ 133 134#define YPMATCH_RESPTYPE YPRESP_VAL 135#define ypmatch_resp_status yp_respbody.yp_resp_valtype.stat 136#define ypmatch_resp_val yp_respbody.yp_resp_valtype 137#define ypmatch_resp_valdat yp_respbody.yp_resp_valtype.val 138#define ypmatch_resp_valptr yp_respbody.yp_resp_valtype.val.valdat_val 139#define ypmatch_resp_valsize yp_respbody.yp_resp_valtype.val.valdat_len 140 141#define YPFIRST_RESPTYPE YPRESP_KEY_VAL 142#define ypfirst_resp_status yp_respbody.yp_resp_key_valtype.stat 143#define ypfirst_resp_keydat yp_respbody.yp_resp_key_valtype.key 144#define ypfirst_resp_keyptr yp_respbody.yp_resp_key_valtype.key.keydat_val 145#define ypfirst_resp_keysize yp_respbody.yp_resp_key_valtype.key.keydat_len 146#define ypfirst_resp_val yp_respbody.yp_resp_key_valtype 147#define ypfirst_resp_valdat yp_respbody.yp_resp_key_valtype.val 148#define ypfirst_resp_valptr yp_respbody.yp_resp_key_valtype.val.valdat_val 149#define ypfirst_resp_valsize yp_respbody.yp_resp_key_valtype.val.valdat_len 150 151#define YPNEXT_RESPTYPE YPRESP_KEY_VAL 152#define ypnext_resp_status yp_respbody.yp_resp_key_valtype.stat 153#define ypnext_resp_keydat yp_respbody.yp_resp_key_valtype.key 154#define ypnext_resp_keyptr yp_respbody.yp_resp_key_valtype.key.keydat_val 155#define ypnext_resp_keysize yp_respbody.yp_resp_key_valtype.key.keydat_len 156#define ypnext_resp_val yp_respbody.yp_resp_key_valtype 157#define ypnext_resp_valdat yp_respbody.yp_resp_key_valtype.val 158#define ypnext_resp_valptr yp_respbody.yp_resp_key_valtype.val.valdat_val 159#define ypnext_resp_valsize yp_respbody.yp_resp_key_valtype.val.valdat_len 160 161#define YPPOLL_RESPTYPE YPRESP_MAP_PARMS 162#define yppoll_resp_domain yp_respbody.yp_resp_map_parmstype.domain 163#define yppoll_resp_map yp_respbody.yp_resp_map_parmstype.map 164#define yppoll_resp_ordernum yp_respbody.yp_resp_map_parmstype.ordernum 165#define yppoll_resp_owner yp_respbody.yp_resp_map_parmstype.peer 166 167#ifdef __cplusplus 168#define YPOLDPROC_NULL ((u_long)0) 169extern "C" void * ypproc_null_1(void *, CLIENT *); 170extern "C" void * ypproc_null_1_svc(void *, struct svc_req *); 171#define YPOLDPROC_DOMAIN ((u_long)1) 172extern "C" bool_t * ypproc_domain_1(domainname *, CLIENT *); 173extern "C" bool_t * ypproc_domain_1_svc(domainname *, struct svc_req *); 174#define YPOLDPROC_DOMAIN_NONACK ((u_long)2) 175extern "C" bool_t * ypproc_domain_nonack_1(domainname *, CLIENT *); 176extern "C" bool_t * ypproc_domain_nonack_1_svc(domainname *, struct svc_req *); 177#define YPOLDPROC_MATCH ((u_long)3) 178extern "C" ypresponse * ypproc_match_1(yprequest *, CLIENT *); 179extern "C" ypresponse * ypproc_match_1_svc(yprequest *, struct svc_req *); 180#define YPOLDPROC_FIRST ((u_long)4) 181extern "C" ypresponse * ypproc_first_1(yprequest *, CLIENT *); 182extern "C" ypresponse * ypproc_first_1_svc(yprequest *, struct svc_req *); 183#define YPOLDPROC_NEXT ((u_long)5) 184extern "C" ypresponse * ypproc_next_1(yprequest *, CLIENT *); 185extern "C" ypresponse * ypproc_next_1_svc(yprequest *, struct svc_req *); 186#define YPOLDPROC_POLL ((u_long)6) 187extern "C" ypresponse * ypproc_poll_1(yprequest *, CLIENT *); 188extern "C" ypresponse * ypproc_poll_1_svc(yprequest *, struct svc_req *); 189#define YPOLDPROC_PUSH ((u_long)7) 190extern "C" void * ypproc_push_1(yprequest *, CLIENT *); 191extern "C" void * ypproc_push_1_svc(yprequest *, struct svc_req *); 192#define YPOLDPROC_PULL ((u_long)8) 193extern "C" void * ypproc_pull_1(yprequest *, CLIENT *); 194extern "C" void * ypproc_pull_1_svc(yprequest *, struct svc_req *); 195#define YPOLDPROC_GET ((u_long)9) 196extern "C" void * ypproc_get_1(yprequest *, CLIENT *); 197extern "C" void * ypproc_get_1_svc(yprequest *, struct svc_req *); 198 199#elif defined(__STDC__) 200#define YPOLDPROC_NULL ((u_long)0) 201extern void * ypproc_null_1(void *, CLIENT *); 202extern void * ypproc_null_1_svc(void *, struct svc_req *); 203#define YPOLDPROC_DOMAIN ((u_long)1) 204extern bool_t * ypproc_domain_1(domainname *, CLIENT *); 205extern bool_t * ypproc_domain_1_svc(domainname *, struct svc_req *); 206#define YPOLDPROC_DOMAIN_NONACK ((u_long)2) 207extern bool_t * ypproc_domain_nonack_1(domainname *, CLIENT *); 208extern bool_t * ypproc_domain_nonack_1_svc(domainname *, struct svc_req *); 209#define YPOLDPROC_MATCH ((u_long)3) 210extern ypresponse * ypproc_match_1(yprequest *, CLIENT *); 211extern ypresponse * ypproc_match_1_svc(yprequest *, struct svc_req *); 212#define YPOLDPROC_FIRST ((u_long)4) 213extern ypresponse * ypproc_first_1(yprequest *, CLIENT *); 214extern ypresponse * ypproc_first_1_svc(yprequest *, struct svc_req *); 215#define YPOLDPROC_NEXT ((u_long)5) 216extern ypresponse * ypproc_next_1(yprequest *, CLIENT *); 217extern ypresponse * ypproc_next_1_svc(yprequest *, struct svc_req *); 218#define YPOLDPROC_POLL ((u_long)6) 219extern ypresponse * ypproc_poll_1(yprequest *, CLIENT *); 220extern ypresponse * ypproc_poll_1_svc(yprequest *, struct svc_req *); 221#define YPOLDPROC_PUSH ((u_long)7) 222extern void * ypproc_push_1(yprequest *, CLIENT *); 223extern void * ypproc_push_1_svc(yprequest *, struct svc_req *); 224#define YPOLDPROC_PULL ((u_long)8) 225extern void * ypproc_pull_1(yprequest *, CLIENT *); 226extern void * ypproc_pull_1_svc(yprequest *, struct svc_req *); 227#define YPOLDPROC_GET ((u_long)9) 228extern void * ypproc_get_1(yprequest *, CLIENT *); 229extern void * ypproc_get_1_svc(yprequest *, struct svc_req *); 230 231#else /* Old Style C */ 232#define YPOLDPROC_NULL ((u_long)0) 233extern void * ypproc_null_1(); 234extern void * ypproc_null_1_svc(); 235#define YPOLDPROC_DOMAIN ((u_long)1) 236extern bool_t * ypproc_domain_1(); 237extern bool_t * ypproc_domain_1_svc(); 238#define YPOLDPROC_DOMAIN_NONACK ((u_long)2) 239extern bool_t * ypproc_domain_nonack_1(); 240extern bool_t * ypproc_domain_nonack_1_svc(); 241#define YPOLDPROC_MATCH ((u_long)3) 242extern ypresponse * ypproc_match_1(); 243extern ypresponse * ypproc_match_1_svc(); 244#define YPOLDPROC_FIRST ((u_long)4) 245extern ypresponse * ypproc_first_1(); 246extern ypresponse * ypproc_first_1_svc(); 247#define YPOLDPROC_NEXT ((u_long)5) 248extern ypresponse * ypproc_next_1(); 249extern ypresponse * ypproc_next_1_svc(); 250#define YPOLDPROC_POLL ((u_long)6) 251extern ypresponse * ypproc_poll_1(); 252extern ypresponse * ypproc_poll_1_svc(); 253#define YPOLDPROC_PUSH ((u_long)7) 254extern void * ypproc_push_1(); 255extern void * ypproc_push_1_svc(); 256#define YPOLDPROC_PULL ((u_long)8) 257extern void * ypproc_pull_1(); 258extern void * ypproc_pull_1_svc(); 259#define YPOLDPROC_GET ((u_long)9) 260extern void * ypproc_get_1(); 261extern void * ypproc_get_1_svc(); 262#endif /* Old Style C */ 263 264#endif /* !_YPV1_H_RPCGEN */ 265