/* * Copyright (c) 2002 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this * file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_LICENSE_HEADER_END@ */ /* * Please do not edit this file. * It was generated using rpcgen. */ #include #ifndef lint /*static char sccsid[] = "from: @(#)sm_inter.x 1.7 87/06/24 Copyr 1987 Sun Micro";*/ /*static char sccsid[] = "from: @(#)sm_inter.x 2.2 88/08/01 4.0 RPCSRC";*/ __unused static char rcsid[] = "$Id: sm_inter_xdr.c,v 1.3 2006/02/07 06:22:32 lindak Exp $"; #endif /* not lint */ bool_t xdr_sm_name(XDR *xdrs, sm_name *objp) { if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) return (FALSE); return (TRUE); } bool_t xdr_my_id(XDR *xdrs, my_id *objp) { if (!xdr_string(xdrs, &objp->my_name, SM_MAXSTRLEN)) return (FALSE); if (!xdr_int(xdrs, &objp->my_prog)) return (FALSE); if (!xdr_int(xdrs, &objp->my_vers)) return (FALSE); if (!xdr_int(xdrs, &objp->my_proc)) return (FALSE); return (TRUE); } bool_t xdr_mon_id(XDR *xdrs, mon_id *objp) { if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) return (FALSE); if (!xdr_my_id(xdrs, &objp->my_id)) return (FALSE); return (TRUE); } bool_t xdr_mon(XDR *xdrs, mon *objp) { if (!xdr_mon_id(xdrs, &objp->mon_id)) return (FALSE); if (!xdr_opaque(xdrs, objp->priv, 16)) return (FALSE); return (TRUE); } bool_t xdr_stat_chge(XDR *xdrs, stat_chge *objp) { if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) return (FALSE); if (!xdr_int(xdrs, &objp->state)) return (FALSE); return (TRUE); } bool_t xdr_sm_stat(XDR *xdrs, sm_stat *objp) { if (!xdr_int(xdrs, &objp->state)) return (FALSE); return (TRUE); } bool_t xdr_sm_res(XDR *xdrs, sm_res *objp) { if (!xdr_enum(xdrs, (enum_t *)objp)) return (FALSE); return (TRUE); } bool_t xdr_sm_stat_res(XDR *xdrs, sm_stat_res *objp) { if (!xdr_sm_res(xdrs, &objp->res_stat)) return (FALSE); if (!xdr_int(xdrs, &objp->state)) return (FALSE); return (TRUE); } bool_t xdr_sm_status(XDR *xdrs, sm_status *objp) { if (!xdr_string(xdrs, &objp->mon_name, SM_MAXSTRLEN)) return (FALSE); if (!xdr_int(xdrs, &objp->state)) return (FALSE); if (!xdr_opaque(xdrs, objp->priv, 16)) return (FALSE); return (TRUE); }