Commit | Line | Data |
---|---|---|
ed09b567 RS |
1 | /* |
2 | * Please do not edit this file. | |
3 | * It was generated using rpcgen. | |
4 | */ | |
5 | ||
6 | #ifndef _NSM_H_RPCGEN | |
7 | #define _NSM_H_RPCGEN | |
8 | ||
9 | ||
10 | ||
11 | ||
12 | #ifdef __cplusplus | |
13 | extern "C" { | |
14 | #endif | |
15 | ||
16 | #define NSM_MAXSTRLEN 1024 | |
17 | ||
ed09b567 RS |
18 | enum nsmstat1 { |
19 | NSM_STAT_SUCC = 0, | |
20 | NSM_STAT_FAIL = 1, | |
21 | }; | |
22 | typedef enum nsmstat1 nsmstat1; | |
23 | ||
ed09b567 RS |
24 | struct nsm_my_id { |
25 | char *my_name; | |
26 | int my_prog; | |
27 | int my_vers; | |
28 | int my_proc; | |
29 | }; | |
30 | typedef struct nsm_my_id nsm_my_id; | |
31 | ||
32 | struct nsm_mon_id { | |
33 | char *mon_name; | |
34 | struct nsm_my_id my_id; | |
35 | }; | |
36 | typedef struct nsm_mon_id nsm_mon_id; | |
37 | ||
1e7a5136 RS |
38 | struct NSM1_STATres { |
39 | nsmstat1 res; | |
40 | int state; | |
41 | }; | |
42 | typedef struct NSM1_STATres NSM1_STATres; | |
43 | ||
44 | struct NSM1_STATargs { | |
45 | char *mon_name; | |
46 | }; | |
47 | typedef struct NSM1_STATargs NSM1_STATargs; | |
48 | ||
49 | struct NSM1_MONres { | |
50 | nsmstat1 res; | |
51 | int state; | |
52 | }; | |
53 | typedef struct NSM1_MONres NSM1_MONres; | |
54 | ||
55 | struct NSM1_MONargs { | |
ed09b567 RS |
56 | struct nsm_mon_id mon_id; |
57 | char priv[16]; | |
58 | }; | |
1e7a5136 RS |
59 | typedef struct NSM1_MONargs NSM1_MONargs; |
60 | ||
61 | struct NSM1_UNMONres { | |
62 | int state; | |
63 | }; | |
64 | typedef struct NSM1_UNMONres NSM1_UNMONres; | |
65 | ||
66 | struct NSM1_UNMONargs { | |
67 | struct nsm_mon_id mon_id; | |
68 | }; | |
69 | typedef struct NSM1_UNMONargs NSM1_UNMONargs; | |
70 | ||
71 | struct NSM1_UNMONALLres { | |
72 | int state; | |
73 | }; | |
74 | typedef struct NSM1_UNMONALLres NSM1_UNMONALLres; | |
75 | ||
76 | struct NSM1_UNMONALLargs { | |
77 | struct nsm_my_id my_id; | |
78 | }; | |
79 | typedef struct NSM1_UNMONALLargs NSM1_UNMONALLargs; | |
ed09b567 | 80 | |
1e7a5136 | 81 | struct NSM1_NOTIFYargs { |
ed09b567 RS |
82 | char *mon_name; |
83 | int state; | |
84 | }; | |
1e7a5136 | 85 | typedef struct NSM1_NOTIFYargs NSM1_NOTIFYargs; |
ed09b567 RS |
86 | |
87 | #define NSM_PROGRAM 100024 | |
88 | #define NSM_V1 1 | |
89 | ||
90 | #if defined(__STDC__) || defined(__cplusplus) | |
91 | #define NSM1_NULL 0 | |
92 | extern void * nsm1_null_1(void *, CLIENT *); | |
93 | extern void * nsm1_null_1_svc(void *, struct svc_req *); | |
94 | #define NSM1_STAT 1 | |
1e7a5136 RS |
95 | extern struct NSM1_STATres * nsm1_stat_1(struct NSM1_STATargs *, CLIENT *); |
96 | extern struct NSM1_STATres * nsm1_stat_1_svc(struct NSM1_STATargs *, struct svc_req *); | |
ed09b567 | 97 | #define NSM1_MON 2 |
1e7a5136 RS |
98 | extern struct NSM1_MONres * nsm1_mon_1(struct NSM1_MONargs *, CLIENT *); |
99 | extern struct NSM1_MONres * nsm1_mon_1_svc(struct NSM1_MONargs *, struct svc_req *); | |
ed09b567 | 100 | #define NSM1_UNMON 3 |
1e7a5136 RS |
101 | extern struct NSM1_UNMONres * nsm1_unmon_1(struct NSM1_UNMONargs *, CLIENT *); |
102 | extern struct NSM1_UNMONres * nsm1_unmon_1_svc(struct NSM1_UNMONargs *, struct svc_req *); | |
ed09b567 | 103 | #define NSM1_UNMON_ALL 4 |
1e7a5136 RS |
104 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(struct NSM1_UNMONALLargs *, CLIENT *); |
105 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(struct NSM1_UNMONALLargs *, struct svc_req *); | |
ed09b567 RS |
106 | #define NSM1_SIMU_CRASH 5 |
107 | extern void * nsm1_simu_crash_1(void *, CLIENT *); | |
108 | extern void * nsm1_simu_crash_1_svc(void *, struct svc_req *); | |
109 | #define NSM1_NOTIFY 6 | |
1e7a5136 RS |
110 | extern void * nsm1_notify_1(struct NSM1_NOTIFYargs *, CLIENT *); |
111 | extern void * nsm1_notify_1_svc(struct NSM1_NOTIFYargs *, struct svc_req *); | |
ed09b567 RS |
112 | extern int nsm_program_1_freeresult (SVCXPRT *, zdrproc_t, caddr_t); |
113 | ||
114 | #else /* K&R C */ | |
115 | #define NSM1_NULL 0 | |
116 | extern void * nsm1_null_1(); | |
117 | extern void * nsm1_null_1_svc(); | |
118 | #define NSM1_STAT 1 | |
1e7a5136 RS |
119 | extern struct NSM1_STATres * nsm1_stat_1(); |
120 | extern struct NSM1_STATres * nsm1_stat_1_svc(); | |
ed09b567 | 121 | #define NSM1_MON 2 |
1e7a5136 RS |
122 | extern struct NSM1_MONres * nsm1_mon_1(); |
123 | extern struct NSM1_MONres * nsm1_mon_1_svc(); | |
ed09b567 | 124 | #define NSM1_UNMON 3 |
1e7a5136 RS |
125 | extern struct NSM1_UNMONres * nsm1_unmon_1(); |
126 | extern struct NSM1_UNMONres * nsm1_unmon_1_svc(); | |
ed09b567 | 127 | #define NSM1_UNMON_ALL 4 |
1e7a5136 RS |
128 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1(); |
129 | extern struct NSM1_UNMONALLres * nsm1_unmon_all_1_svc(); | |
ed09b567 RS |
130 | #define NSM1_SIMU_CRASH 5 |
131 | extern void * nsm1_simu_crash_1(); | |
132 | extern void * nsm1_simu_crash_1_svc(); | |
133 | #define NSM1_NOTIFY 6 | |
134 | extern void * nsm1_notify_1(); | |
135 | extern void * nsm1_notify_1_svc(); | |
136 | extern int nsm_program_1_freeresult (); | |
137 | #endif /* K&R C */ | |
138 | ||
139 | /* the zdr functions */ | |
140 | ||
141 | #if defined(__STDC__) || defined(__cplusplus) | |
ed09b567 | 142 | extern bool_t zdr_nsmstat1 (ZDR *, nsmstat1*); |
ed09b567 RS |
143 | extern bool_t zdr_nsm_my_id (ZDR *, nsm_my_id*); |
144 | extern bool_t zdr_nsm_mon_id (ZDR *, nsm_mon_id*); | |
1e7a5136 RS |
145 | extern bool_t zdr_NSM1_STATres (ZDR *, NSM1_STATres*); |
146 | extern bool_t zdr_NSM1_STATargs (ZDR *, NSM1_STATargs*); | |
147 | extern bool_t zdr_NSM1_MONres (ZDR *, NSM1_MONres*); | |
148 | extern bool_t zdr_NSM1_MONargs (ZDR *, NSM1_MONargs*); | |
149 | extern bool_t zdr_NSM1_UNMONres (ZDR *, NSM1_UNMONres*); | |
150 | extern bool_t zdr_NSM1_UNMONargs (ZDR *, NSM1_UNMONargs*); | |
151 | extern bool_t zdr_NSM1_UNMONALLres (ZDR *, NSM1_UNMONALLres*); | |
152 | extern bool_t zdr_NSM1_UNMONALLargs (ZDR *, NSM1_UNMONALLargs*); | |
153 | extern bool_t zdr_NSM1_NOTIFYargs (ZDR *, NSM1_NOTIFYargs*); | |
ed09b567 RS |
154 | |
155 | #else /* K&R C */ | |
ed09b567 | 156 | extern bool_t zdr_nsmstat1 (); |
ed09b567 RS |
157 | extern bool_t zdr_nsm_my_id (); |
158 | extern bool_t zdr_nsm_mon_id (); | |
1e7a5136 RS |
159 | extern bool_t zdr_NSM1_STATres (); |
160 | extern bool_t zdr_NSM1_STATargs (); | |
161 | extern bool_t zdr_NSM1_MONres (); | |
162 | extern bool_t zdr_NSM1_MONargs (); | |
163 | extern bool_t zdr_NSM1_UNMONres (); | |
164 | extern bool_t zdr_NSM1_UNMONargs (); | |
165 | extern bool_t zdr_NSM1_UNMONALLres (); | |
166 | extern bool_t zdr_NSM1_UNMONALLargs (); | |
167 | extern bool_t zdr_NSM1_NOTIFYargs (); | |
ed09b567 RS |
168 | |
169 | #endif /* K&R C */ | |
170 | ||
171 | #ifdef __cplusplus | |
172 | } | |
173 | #endif | |
174 | ||
175 | #endif /* !_NSM_H_RPCGEN */ |