Home | History | Annotate | Line # | Download | only in common
      1  1.4    grant /*	$NetBSD: ypresp_xdr.c,v 1.4 2003/11/12 13:31:08 grant Exp $	*/
      2  1.1  thorpej 
      3  1.1  thorpej /*
      4  1.1  thorpej  * This file was originally generated with rpcgen, then modified
      5  1.4    grant  * 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.4    grant __RCSID("$NetBSD: ypresp_xdr.c,v 1.4 2003/11/12 13:31:08 grant 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.3      wiz xdr_ypresp_xfr(XDR *xdrs, struct ypresp_xfr *objp)
     23  1.1  thorpej {
     24  1.1  thorpej 
     25  1.1  thorpej 	if (!xdr_u_int(xdrs, &objp->transid))
     26  1.1  thorpej 		return FALSE;
     27  1.1  thorpej 
     28  1.1  thorpej 	if (!xdr_enum(xdrs, (enum_t *)&objp->xfrstat))
     29  1.1  thorpej 		return FALSE;
     30  1.1  thorpej 
     31  1.1  thorpej 	return TRUE;
     32  1.1  thorpej }
     33