Home | History | Annotate | Line # | Download | only in common
ypresp_xdr.c revision 1.1
      1  1.1  thorpej /*	$NetBSD: ypresp_xdr.c,v 1.1 1996/08/09 10:14:52 thorpej 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.1  thorpej 
      8  1.1  thorpej #include <sys/types.h>
      9  1.1  thorpej 
     10  1.1  thorpej #include <rpc/rpc.h>
     11  1.1  thorpej #include <rpc/xdr.h>
     12  1.1  thorpej #include <rpcsvc/yp_prot.h>
     13  1.1  thorpej 
     14  1.1  thorpej #include "ypdef.h"
     15  1.1  thorpej 
     16  1.1  thorpej bool_t
     17  1.1  thorpej xdr_ypresp_xfr(xdrs, objp)
     18  1.1  thorpej 	XDR *xdrs;
     19  1.1  thorpej 	struct ypresp_xfr *objp;
     20  1.1  thorpej {
     21  1.1  thorpej 
     22  1.1  thorpej 	if (!xdr_u_int(xdrs, &objp->transid))
     23  1.1  thorpej 		return FALSE;
     24  1.1  thorpej 
     25  1.1  thorpej 	if (!xdr_enum(xdrs, (enum_t *)&objp->xfrstat))
     26  1.1  thorpej 		return FALSE;
     27  1.1  thorpej 
     28  1.1  thorpej 	return TRUE;
     29  1.1  thorpej }
     30