NetBSD-5.0.2/usr.sbin/ypserv/ypserv/ypserv_xdr.c
/* $NetBSD: ypserv_xdr.c,v 1.4 2003/11/12 13:31:08 grant Exp $ */
/*
* This file was originally generated with rpcgen, then modified
* by Jason R. Thorpe <thorpej@NetBSD.org>.
*/
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: ypserv_xdr.c,v 1.4 2003/11/12 13:31:08 grant Exp $");
#endif
#include <sys/types.h>
#include <rpc/rpc.h>
#include <rpc/xdr.h>
#include <rpcsvc/yp_prot.h>
#include "ypserv.h"
bool_t
xdr_ypresp_all(XDR *xdrs, struct ypresp_all *objp)
{
if (!xdr_bool(xdrs, &objp->more))
return FALSE;
switch (objp->more) {
case TRUE:
if (!xdr_ypresp_key_val(xdrs, &objp->ypresp_all_u.val))
return FALSE;
break;
case FALSE:
break;
default:
return FALSE;
}
return TRUE;
}