1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _SMED_H_RPCGEN 7 #define _SMED_H_RPCGEN 8 9 #include <rpc/rpc.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /* 16 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 17 * Use is subject to license terms. 18 * 19 * CDDL HEADER START 20 * 21 * The contents of this file are subject to the terms of the 22 * Common Development and Distribution License, Version 1.0 only 23 * (the "License"). You may not use this file except in compliance 24 * with the License. 25 * 26 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 27 * or http://www.opensolaris.org/os/licensing. 28 * See the License for the specific language governing permissions 29 * and limitations under the License. 30 * 31 * When distributing Covered Code, include this CDDL HEADER in each 32 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 33 * If applicable, add the following below this CDDL HEADER, with the 34 * fields enclosed by brackets "[]" replaced with your own identifying 35 * information: Portions Copyright [yyyy] [name of copyright owner] 36 * 37 * CDDL HEADER END 38 */ 39 /* from smed.x */ 40 41 #pragma ident "%Z%%M% %I% %E% SMI" 42 43 44 struct smserver_info { 45 int32_t status; 46 int32_t vernum; 47 int32_t door_id; 48 int32_t reserved[16]; 49 }; 50 typedef struct smserver_info smserver_info; 51 52 #define SMSERVERPROG 100155 53 #define SMSERVERVERS 1 54 55 #if defined(__STDC__) || defined(__cplusplus) 56 #define SMSERVERPROC_GET_SERVERINFO 1 57 extern smserver_info * smserverproc_get_serverinfo_1(void *, CLIENT *); 58 extern smserver_info * smserverproc_get_serverinfo_1_svc(void *, struct svc_req *); 59 extern int smserverprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 60 61 #else /* K&R C */ 62 #define SMSERVERPROC_GET_SERVERINFO 1 63 extern smserver_info * smserverproc_get_serverinfo_1(); 64 extern smserver_info * smserverproc_get_serverinfo_1_svc(); 65 extern int smserverprog_1_freeresult(); 66 #endif /* K&R C */ 67 68 /* the xdr functions */ 69 70 #if defined(__STDC__) || defined(__cplusplus) 71 extern bool_t xdr_smserver_info(XDR *, smserver_info*); 72 73 #else /* K&R C */ 74 extern bool_t xdr_smserver_info(); 75 76 #endif /* K&R C */ 77 78 #ifdef __cplusplus 79 } 80 #endif 81 82 #endif /* !_SMED_H_RPCGEN */ 83