Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.sbin / ypserv / common / ypresp_xdr.c
blobddedb020ba340c8197f28b4a46ff852ac99de667
1 /* $NetBSD: ypresp_xdr.c,v 1.3 2002/07/06 21:39:26 wiz Exp $ */
3 /*
4 * This file was originally generated with rpcgen, then modified
5 * by Jason R. Thorpe <thorpej@NetBSD.org>.
6 */
8 #include <sys/cdefs.h>
9 #ifndef lint
10 __RCSID("$NetBSD: ypresp_xdr.c,v 1.3 2002/07/06 21:39:26 wiz Exp $");
11 #endif
13 #include <sys/types.h>
15 #include <rpc/rpc.h>
16 #include <rpc/xdr.h>
17 #include <rpcsvc/yp_prot.h>
19 #include "ypdef.h"
21 bool_t
22 xdr_ypresp_xfr(XDR *xdrs, struct ypresp_xfr *objp)
25 if (!xdr_u_int(xdrs, &objp->transid))
26 return FALSE;
28 if (!xdr_enum(xdrs, (enum_t *)&objp->xfrstat))
29 return FALSE;
31 return TRUE;