1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #include "smed.h" 7 8 #ifndef _KERNEL 9 #include <stdlib.h> 10 #endif /* !_KERNEL */ 11 12 /* 13 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 14 * Use is subject to license terms. 15 * 16 * CDDL HEADER START 17 * 18 * The contents of this file are subject to the terms of the 19 * Common Development and Distribution License, Version 1.0 only 20 * (the "License"). You may not use this file except in compliance 21 * with the License. 22 * 23 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 24 * or http://www.opensolaris.org/os/licensing. 25 * See the License for the specific language governing permissions 26 * and limitations under the License. 27 * 28 * When distributing Covered Code, include this CDDL HEADER in each 29 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 30 * If applicable, add the following below this CDDL HEADER, with the 31 * fields enclosed by brackets "[]" replaced with your own identifying 32 * information: Portions Copyright [yyyy] [name of copyright owner] 33 * 34 * CDDL HEADER END 35 */ 36 /* from smed.x */ 37 38 bool_t 39 xdr_smserver_info(xdrs, objp) 40 XDR *xdrs; 41 smserver_info *objp; 42 { 43 44 rpc_inline_t *buf; 45 46 if (!xdr_int32_t(xdrs, &objp->status)) 47 return (FALSE); 48 if (!xdr_int32_t(xdrs, &objp->vernum)) 49 return (FALSE); 50 if (!xdr_int32_t(xdrs, &objp->door_id)) 51 return (FALSE); 52 if (!xdr_vector(xdrs, (char *)objp->reserved, 16, 53 sizeof (int32_t), (xdrproc_t)xdr_int32_t)) 54 return (FALSE); 55 return (TRUE); 56 } 57