Home | History | Annotate | Line # | Download | only in common
ypresp_xdr.c revision 1.2
      1  1.2    lukem /*	$NetBSD: ypresp_xdr.c,v 1.2 1997/10/13 03:42:33 lukem Exp $	*/
      2  1.1  thorpej 
      3  1.1  thorpej /*
      4  1.1  thorpej  * This file was originally generated with rpcgen, then modified
      5  1.1  thorpej  * by Jason R. Thorpe <thorpej (at) NetBSD.ORG>.
      6  1.1  thorpej  */
      7  1.2    lukem 
      8  1.2    lukem #include <sys/cdefs.h>
      9  1.2    lukem #ifndef lint
     10  1.2    lukem __RCSID("$NetBSD: ypresp_xdr.c,v 1.2 1997/10/13 03:42:33 lukem Exp $");
     11  1.2    lukem #endif
     12  1.1  thorpej 
     13  1.1  thorpej #include <sys/types.h>
     14  1.1  thorpej 
     15  1.1  thorpej #include <rpc/rpc.h>
     16  1.1  thorpej #include <rpc/xdr.h>
     17  1.1  thorpej #include <rpcsvc/yp_prot.h>
     18  1.1  thorpej 
     19  1.1  thorpej #include "ypdef.h"
     20  1.1  thorpej 
     21  1.1  thorpej bool_t
     22  1.1  thorpej xdr_ypresp_xfr(xdrs, objp)
     23  1.1  thorpej 	XDR *xdrs;
     24  1.1  thorpej 	struct ypresp_xfr *objp;
     25  1.1  thorpej {
     26  1.1  thorpej 
     27  1.1  thorpej 	if (!xdr_u_int(xdrs, &objp->transid))
     28  1.1  thorpej 		return FALSE;
     29  1.1  thorpej 
     30  1.1  thorpej 	if (!xdr_enum(xdrs, (enum_t *)&objp->xfrstat))
     31  1.1  thorpej 		return FALSE;
     32  1.1  thorpej 
     33  1.1  thorpej 	return TRUE;
     34  1.1  thorpej }
     35