1 /* $NetBSD: ypresp_xdr.c,v 1.1 1996/08/09 10:14:52 thorpej Exp $ */ 2 3 /* 4 * This file was originally generated with rpcgen, then modified 5 * by Jason R. Thorpe <thorpej (at) NetBSD.ORG>. 6 */ 7 8 #include <sys/types.h> 9 10 #include <rpc/rpc.h> 11 #include <rpc/xdr.h> 12 #include <rpcsvc/yp_prot.h> 13 14 #include "ypdef.h" 15 16 bool_t 17 xdr_ypresp_xfr(xdrs, objp) 18 XDR *xdrs; 19 struct ypresp_xfr *objp; 20 { 21 22 if (!xdr_u_int(xdrs, &objp->transid)) 23 return FALSE; 24 25 if (!xdr_enum(xdrs, (enum_t *)&objp->xfrstat)) 26 return FALSE; 27 28 return TRUE; 29 } 30