1 /* $NetBSD: ypserv_xdr.c,v 1.2 1997/10/15 05:01:52 lukem Exp $ */ 2 3 /* 4 * This file was originally generated with rpcgen, then modified 5 * by Jason R. Thorpe <thorpej@NetBSD.ORG>. 6 */ 7 8 #include <sys/cdefs.h> 9 #ifndef lint 10 __RCSID("$NetBSD: ypserv_xdr.c,v 1.2 1997/10/15 05:01:52 lukem Exp $"); 11 #endif 12 13 #include <sys/types.h> 14 15 #include <rpc/rpc.h> 16 #include <rpc/xdr.h> 17 #include <rpcsvc/yp_prot.h> 18 19 #include "ypserv.h" 20 21 bool_t 22 xdr_ypresp_all(xdrs, objp) 23 XDR *xdrs; 24 struct ypresp_all *objp; 25 { 26 27 if (!xdr_bool(xdrs, &objp->more)) 28 return FALSE; 29 30 switch (objp->more) { 31 case TRUE: 32 if (!xdr_ypresp_key_val(xdrs, &objp->ypresp_all_u.val)) 33 return FALSE; 34 35 break; 36 37 case FALSE: 38 break; 39 40 default: 41 return FALSE; 42 } 43 44 return TRUE; 45 } 46