1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _SM_INTER_H_RPCGEN
7#define _SM_INTER_H_RPCGEN
8
9#define RPCGEN_VERSION	199506
10
11#include <oncrpc/rpc.h>
12
13#define SM_MAXSTRLEN 1024
14
15struct sm_name {
16	char *mon_name;
17};
18typedef struct sm_name sm_name;
19#ifdef __cplusplus
20extern "C" bool_t xdr_sm_name(XDR *, sm_name*);
21#elif __STDC__
22extern  bool_t xdr_sm_name(XDR *, sm_name*);
23#else /* Old Style C */
24bool_t xdr_sm_name();
25#endif /* Old Style C */
26
27
28struct my_id {
29	char *my_name;
30	int my_prog;
31	int my_vers;
32	int my_proc;
33};
34typedef struct my_id my_id;
35#ifdef __cplusplus
36extern "C" bool_t xdr_my_id(XDR *, my_id*);
37#elif __STDC__
38extern  bool_t xdr_my_id(XDR *, my_id*);
39#else /* Old Style C */
40bool_t xdr_my_id();
41#endif /* Old Style C */
42
43
44struct mon_id {
45	char *mon_name;
46	struct my_id my_id;
47};
48typedef struct mon_id mon_id;
49#ifdef __cplusplus
50extern "C" bool_t xdr_mon_id(XDR *, mon_id*);
51#elif __STDC__
52extern  bool_t xdr_mon_id(XDR *, mon_id*);
53#else /* Old Style C */
54bool_t xdr_mon_id();
55#endif /* Old Style C */
56
57
58struct mon {
59	struct mon_id mon_id;
60	char priv[16];
61};
62typedef struct mon mon;
63#ifdef __cplusplus
64extern "C" bool_t xdr_mon(XDR *, mon*);
65#elif __STDC__
66extern  bool_t xdr_mon(XDR *, mon*);
67#else /* Old Style C */
68bool_t xdr_mon();
69#endif /* Old Style C */
70
71
72struct stat_chge {
73	char *mon_name;
74	int state;
75};
76typedef struct stat_chge stat_chge;
77#ifdef __cplusplus
78extern "C" bool_t xdr_stat_chge(XDR *, stat_chge*);
79#elif __STDC__
80extern  bool_t xdr_stat_chge(XDR *, stat_chge*);
81#else /* Old Style C */
82bool_t xdr_stat_chge();
83#endif /* Old Style C */
84
85
86struct sm_stat {
87	int state;
88};
89typedef struct sm_stat sm_stat;
90#ifdef __cplusplus
91extern "C" bool_t xdr_sm_stat(XDR *, sm_stat*);
92#elif __STDC__
93extern  bool_t xdr_sm_stat(XDR *, sm_stat*);
94#else /* Old Style C */
95bool_t xdr_sm_stat();
96#endif /* Old Style C */
97
98
99enum sm_res {
100	stat_succ = 0,
101	stat_fail = 1,
102};
103typedef enum sm_res sm_res;
104#ifdef __cplusplus
105extern "C" bool_t xdr_sm_res(XDR *, sm_res*);
106#elif __STDC__
107extern  bool_t xdr_sm_res(XDR *, sm_res*);
108#else /* Old Style C */
109bool_t xdr_sm_res();
110#endif /* Old Style C */
111
112
113struct sm_stat_res {
114	sm_res res_stat;
115	int state;
116};
117typedef struct sm_stat_res sm_stat_res;
118#ifdef __cplusplus
119extern "C" bool_t xdr_sm_stat_res(XDR *, sm_stat_res*);
120#elif __STDC__
121extern  bool_t xdr_sm_stat_res(XDR *, sm_stat_res*);
122#else /* Old Style C */
123bool_t xdr_sm_stat_res();
124#endif /* Old Style C */
125
126
127struct sm_status {
128	char *mon_name;
129	int state;
130	char priv[16];
131};
132typedef struct sm_status sm_status;
133#ifdef __cplusplus
134extern "C" bool_t xdr_sm_status(XDR *, sm_status*);
135#elif __STDC__
136extern  bool_t xdr_sm_status(XDR *, sm_status*);
137#else /* Old Style C */
138bool_t xdr_sm_status();
139#endif /* Old Style C */
140
141
142#define SM_PROG ((rpc_uint)100024)
143#define SM_VERS ((rpc_uint)1)
144
145#ifdef __cplusplus
146#define SM_STAT ((rpc_uint)1)
147extern "C" struct sm_stat_res * sm_stat_1(struct sm_name *, CLIENT *);
148extern "C" struct sm_stat_res * sm_stat_1_svc(struct sm_name *, struct svc_req *);
149#define SM_MON ((rpc_uint)2)
150extern "C" struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *);
151extern "C" struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *);
152#define SM_UNMON ((rpc_uint)3)
153extern "C" struct sm_stat * sm_unmon_1(struct mon_id *, CLIENT *);
154extern "C" struct sm_stat * sm_unmon_1_svc(struct mon_id *, struct svc_req *);
155#define SM_UNMON_ALL ((rpc_uint)4)
156extern "C" struct sm_stat * sm_unmon_all_1(struct my_id *, CLIENT *);
157extern "C" struct sm_stat * sm_unmon_all_1_svc(struct my_id *, struct svc_req *);
158#define SM_SIMU_CRASH ((rpc_uint)5)
159extern "C" void * sm_simu_crash_1(void *, CLIENT *);
160extern "C" void * sm_simu_crash_1_svc(void *, struct svc_req *);
161#define SM_NOTIFY ((rpc_uint)6)
162extern "C" void * sm_notify_1(struct stat_chge *, CLIENT *);
163extern "C" void * sm_notify_1_svc(struct stat_chge *, struct svc_req *);
164
165#elif __STDC__
166#define SM_STAT ((rpc_uint)1)
167extern  struct sm_stat_res * sm_stat_1(struct sm_name *, CLIENT *);
168extern  struct sm_stat_res * sm_stat_1_svc(struct sm_name *, struct svc_req *);
169#define SM_MON ((rpc_uint)2)
170extern  struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *);
171extern  struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *);
172#define SM_UNMON ((rpc_uint)3)
173extern  struct sm_stat * sm_unmon_1(struct mon_id *, CLIENT *);
174extern  struct sm_stat * sm_unmon_1_svc(struct mon_id *, struct svc_req *);
175#define SM_UNMON_ALL ((rpc_uint)4)
176extern  struct sm_stat * sm_unmon_all_1(struct my_id *, CLIENT *);
177extern  struct sm_stat * sm_unmon_all_1_svc(struct my_id *, struct svc_req *);
178#define SM_SIMU_CRASH ((rpc_uint)5)
179extern  void * sm_simu_crash_1(void *, CLIENT *);
180extern  void * sm_simu_crash_1_svc(void *, struct svc_req *);
181#define SM_NOTIFY ((rpc_uint)6)
182extern  void * sm_notify_1(struct stat_chge *, CLIENT *);
183extern  void * sm_notify_1_svc(struct stat_chge *, struct svc_req *);
184
185#else /* Old Style C */
186#define SM_STAT ((rpc_uint)1)
187extern  struct sm_stat_res * sm_stat_1();
188extern  struct sm_stat_res * sm_stat_1_svc();
189#define SM_MON ((rpc_uint)2)
190extern  struct sm_stat_res * sm_mon_1();
191extern  struct sm_stat_res * sm_mon_1_svc();
192#define SM_UNMON ((rpc_uint)3)
193extern  struct sm_stat * sm_unmon_1();
194extern  struct sm_stat * sm_unmon_1_svc();
195#define SM_UNMON_ALL ((rpc_uint)4)
196extern  struct sm_stat * sm_unmon_all_1();
197extern  struct sm_stat * sm_unmon_all_1_svc();
198#define SM_SIMU_CRASH ((rpc_uint)5)
199extern  void * sm_simu_crash_1();
200extern  void * sm_simu_crash_1_svc();
201#define SM_NOTIFY ((rpc_uint)6)
202extern  void * sm_notify_1();
203extern  void * sm_notify_1_svc();
204#endif /* Old Style C */
205
206#endif /* !_SM_INTER_H_RPCGEN */
207