/* $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 . */ #include #ifndef lint __RCSID("$NetBSD: ypserv_xdr.c,v 1.4 2003/11/12 13:31:08 grant Exp $"); #endif #include #include #include #include #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; }