xref: /netbsd-src/usr.sbin/ypserv/common/ypresp_xdr.c (revision cacf2d0f4546b5bc0120514b295f701a8ad17c5c)
1 /*	$NetBSD: ypresp_xdr.c,v 1.4 2003/11/12 13:31:08 grant 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: ypresp_xdr.c,v 1.4 2003/11/12 13:31:08 grant 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 "ypdef.h"
20 
21 bool_t
xdr_ypresp_xfr(XDR * xdrs,struct ypresp_xfr * objp)22 xdr_ypresp_xfr(XDR *xdrs, struct ypresp_xfr *objp)
23 {
24 
25 	if (!xdr_u_int(xdrs, &objp->transid))
26 		return FALSE;
27 
28 	if (!xdr_enum(xdrs, (enum_t *)&objp->xfrstat))
29 		return FALSE;
30 
31 	return TRUE;
32 }
33