Commit | Line | Data |
---|---|---|
763cd6e3 RS |
1 | /* |
2 | * Please do not edit this file. | |
3 | * It was generated using rpcgen. | |
4 | */ | |
5 | ||
6 | #ifndef _NLM_H_RPCGEN | |
7 | #define _NLM_H_RPCGEN | |
8 | ||
9 | ||
10 | ||
11 | ||
12 | #ifdef __cplusplus | |
13 | extern "C" { | |
14 | #endif | |
15 | ||
252aa90d CF |
16 | #if defined(ANDROID) |
17 | typedef long long int quad_t; | |
18 | typedef long long unsigned u_quad_t; | |
19 | #endif | |
763cd6e3 RS |
20 | |
21 | struct nlm_fh4 { | |
22 | struct { | |
23 | u_int data_len; | |
24 | char *data_val; | |
25 | } data; | |
26 | }; | |
27 | typedef struct nlm_fh4 nlm_fh4; | |
28 | ||
29 | typedef char *nlm4_oh; | |
30 | ||
31 | struct nlm_cookie { | |
32 | struct { | |
33 | u_int data_len; | |
34 | char *data_val; | |
35 | } data; | |
36 | }; | |
37 | typedef struct nlm_cookie nlm_cookie; | |
38 | ||
39 | enum nlmstat4 { | |
40 | NLM4_GRANTED = 0, | |
41 | NLM4_DENIED = 1, | |
42 | NLM4_DENIED_NOLOCKS = 2, | |
43 | NLM4_BLOCKED = 3, | |
44 | NLM4_DENIED_GRACE_PERIOD = 4, | |
45 | NLM4_DEADLCK = 5, | |
46 | NLM4_ROFS = 6, | |
47 | NLM4_STALE_FH = 7, | |
48 | NLM4_FBIG = 8, | |
49 | NLM4_FAILED = 9, | |
50 | }; | |
51 | typedef enum nlmstat4 nlmstat4; | |
52 | ||
53 | struct nlm4_holder { | |
54 | bool_t exclusive; | |
55 | u_int svid; | |
56 | nlm4_oh oh; | |
57 | u_quad_t l_offset; | |
58 | u_quad_t l_len; | |
59 | }; | |
60 | typedef struct nlm4_holder nlm4_holder; | |
61 | #define NLM_MAXNAME 256 | |
62 | ||
63 | struct nlm4_lock { | |
64 | char *caller_name; | |
65 | struct nlm_fh4 fh; | |
66 | nlm4_oh oh; | |
67 | u_int svid; | |
68 | u_quad_t l_offset; | |
69 | u_quad_t l_len; | |
70 | }; | |
71 | typedef struct nlm4_lock nlm4_lock; | |
72 | ||
73 | struct nlm4_share { | |
74 | char *caller_name; | |
75 | struct nlm_fh4 fh; | |
76 | nlm4_oh oh; | |
77 | u_int mode; | |
78 | u_int access; | |
79 | }; | |
80 | typedef struct nlm4_share nlm4_share; | |
81 | ||
82 | struct nlm4_testres_denied { | |
83 | nlm4_holder holder; | |
84 | }; | |
85 | typedef struct nlm4_testres_denied nlm4_testres_denied; | |
86 | ||
87 | struct nlm4_testreply { | |
88 | nlmstat4 status; | |
89 | union { | |
90 | nlm4_testres_denied lock; | |
91 | } nlm4_testreply_u; | |
92 | }; | |
93 | typedef struct nlm4_testreply nlm4_testreply; | |
94 | ||
95 | struct NLM4_TESTres { | |
96 | nlm_cookie cookie; | |
97 | nlm4_testreply reply; | |
98 | }; | |
99 | typedef struct NLM4_TESTres NLM4_TESTres; | |
100 | ||
101 | struct NLM4_TESTargs { | |
102 | nlm_cookie cookie; | |
103 | bool_t exclusive; | |
104 | nlm4_lock lock; | |
105 | }; | |
106 | typedef struct NLM4_TESTargs NLM4_TESTargs; | |
107 | ||
108 | struct NLM4_CANCres { | |
109 | nlm_cookie cookie; | |
110 | nlmstat4 status; | |
111 | }; | |
112 | typedef struct NLM4_CANCres NLM4_CANCres; | |
113 | ||
114 | struct NLM4_CANCargs { | |
115 | nlm_cookie cookie; | |
116 | bool_t block; | |
117 | bool_t exclusive; | |
118 | nlm4_lock lock; | |
119 | }; | |
120 | typedef struct NLM4_CANCargs NLM4_CANCargs; | |
121 | ||
122 | struct NLM4_UNLOCKres { | |
123 | nlm_cookie cookie; | |
124 | nlmstat4 status; | |
125 | }; | |
126 | typedef struct NLM4_UNLOCKres NLM4_UNLOCKres; | |
127 | ||
128 | struct NLM4_UNLOCKargs { | |
129 | nlm_cookie cookie; | |
130 | nlm4_lock lock; | |
131 | }; | |
132 | typedef struct NLM4_UNLOCKargs NLM4_UNLOCKargs; | |
133 | ||
134 | struct NLM4_LOCKres { | |
135 | nlm_cookie cookie; | |
136 | nlmstat4 status; | |
137 | }; | |
138 | typedef struct NLM4_LOCKres NLM4_LOCKres; | |
139 | ||
140 | struct NLM4_LOCKargs { | |
141 | nlm_cookie cookie; | |
142 | bool_t block; | |
143 | bool_t exclusive; | |
144 | nlm4_lock lock; | |
145 | bool_t reclaim; | |
146 | int state; | |
147 | }; | |
148 | typedef struct NLM4_LOCKargs NLM4_LOCKargs; | |
149 | ||
150 | struct NLM4_GRANTEDargs { | |
151 | nlm_cookie cookie; | |
152 | bool_t exclusive; | |
153 | nlm4_lock lock; | |
154 | }; | |
155 | typedef struct NLM4_GRANTEDargs NLM4_GRANTEDargs; | |
156 | ||
157 | struct NLM4_GRANTEDres { | |
158 | nlm_cookie cookie; | |
159 | nlmstat4 status; | |
160 | }; | |
161 | typedef struct NLM4_GRANTEDres NLM4_GRANTEDres; | |
162 | ||
163 | #define NLM_PROGRAM 100021 | |
164 | #define NLM_V4 4 | |
165 | ||
166 | #if defined(__STDC__) || defined(__cplusplus) | |
167 | #define NLM4_NULL 0 | |
168 | extern void * nlm4_null_4(void *, CLIENT *); | |
169 | extern void * nlm4_null_4_svc(void *, struct svc_req *); | |
170 | #define NLM4_TEST 1 | |
171 | extern NLM4_TESTres * nlm4_test_4(NLM4_TESTargs *, CLIENT *); | |
172 | extern NLM4_TESTres * nlm4_test_4_svc(NLM4_TESTargs *, struct svc_req *); | |
173 | #define NLM4_LOCK 2 | |
174 | extern NLM4_LOCKres * nlm4_lock_4(NLM4_LOCKargs *, CLIENT *); | |
175 | extern NLM4_LOCKres * nlm4_lock_4_svc(NLM4_LOCKargs *, struct svc_req *); | |
176 | #define NLM4_CANCEL 3 | |
177 | extern NLM4_CANCres * nlm4_cancel_4(NLM4_CANCargs *, CLIENT *); | |
178 | extern NLM4_CANCres * nlm4_cancel_4_svc(NLM4_CANCargs *, struct svc_req *); | |
179 | #define NLM4_UNLOCK 4 | |
180 | extern NLM4_UNLOCKres * nlm4_unlock_4(NLM4_UNLOCKargs *, CLIENT *); | |
181 | extern NLM4_UNLOCKres * nlm4_unlock_4_svc(NLM4_UNLOCKargs *, struct svc_req *); | |
182 | #define NLM4_GRANT 5 | |
183 | extern NLM4_GRANTEDres * nlm4_grant_4(NLM4_GRANTEDargs *, CLIENT *); | |
184 | extern NLM4_GRANTEDres * nlm4_grant_4_svc(NLM4_GRANTEDargs *, struct svc_req *); | |
185 | #define NLM4_TEST_MSG 6 | |
186 | extern void * nlm4_test_msg_4(NLM4_TESTargs *, CLIENT *); | |
187 | extern void * nlm4_test_msg_4_svc(NLM4_TESTargs *, struct svc_req *); | |
188 | #define NLM4_LOCK_MSG 7 | |
189 | extern void * nlm4_lock_msg_4(NLM4_LOCKargs *, CLIENT *); | |
190 | extern void * nlm4_lock_msg_4_svc(NLM4_LOCKargs *, struct svc_req *); | |
191 | #define NLM4_CANCEL_MSG 8 | |
192 | extern void * nlm4_cancel_msg_4(NLM4_CANCargs *, CLIENT *); | |
193 | extern void * nlm4_cancel_msg_4_svc(NLM4_CANCargs *, struct svc_req *); | |
194 | #define NLM4_UNLOCK_MSG 9 | |
195 | extern void * nlm4_unlock_msg_4(NLM4_UNLOCKargs *, CLIENT *); | |
196 | extern void * nlm4_unlock_msg_4_svc(NLM4_UNLOCKargs *, struct svc_req *); | |
197 | #define NLM4_GRANT_MSG 10 | |
198 | extern void * nlm4_grant_msg_4(NLM4_GRANTEDargs *, CLIENT *); | |
199 | extern void * nlm4_grant_msg_4_svc(NLM4_GRANTEDargs *, struct svc_req *); | |
200 | #define NLM4_TEST_RES 11 | |
201 | extern void * nlm4_test_res_4(NLM4_TESTres *, CLIENT *); | |
202 | extern void * nlm4_test_res_4_svc(NLM4_TESTres *, struct svc_req *); | |
203 | #define NLM4_LOCK_RES 12 | |
204 | extern void * nlm4_lock_res_4(NLM4_LOCKres *, CLIENT *); | |
205 | extern void * nlm4_lock_res_4_svc(NLM4_LOCKres *, struct svc_req *); | |
206 | #define NLM4_CANCEL_RES 13 | |
207 | extern void * nlm4_cancel_res_4(NLM4_CANCres *, CLIENT *); | |
208 | extern void * nlm4_cancel_res_4_svc(NLM4_CANCres *, struct svc_req *); | |
209 | #define NLM4_UNLOCK_RES 14 | |
210 | extern void * nlm4_unlock_res_4(NLM4_UNLOCKres *, CLIENT *); | |
211 | extern void * nlm4_unlock_res_4_svc(NLM4_UNLOCKres *, struct svc_req *); | |
212 | #define NLM4_GRANT_RES 15 | |
213 | extern void * nlm4_grant_res_4(NLM4_GRANTEDres *, CLIENT *); | |
214 | extern void * nlm4_grant_res_4_svc(NLM4_GRANTEDres *, struct svc_req *); | |
215 | extern int nlm_program_4_freeresult (SVCXPRT *, zdrproc_t, caddr_t); | |
216 | ||
217 | #else /* K&R C */ | |
218 | #define NLM4_NULL 0 | |
219 | extern void * nlm4_null_4(); | |
220 | extern void * nlm4_null_4_svc(); | |
221 | #define NLM4_TEST 1 | |
222 | extern NLM4_TESTres * nlm4_test_4(); | |
223 | extern NLM4_TESTres * nlm4_test_4_svc(); | |
224 | #define NLM4_LOCK 2 | |
225 | extern NLM4_LOCKres * nlm4_lock_4(); | |
226 | extern NLM4_LOCKres * nlm4_lock_4_svc(); | |
227 | #define NLM4_CANCEL 3 | |
228 | extern NLM4_CANCres * nlm4_cancel_4(); | |
229 | extern NLM4_CANCres * nlm4_cancel_4_svc(); | |
230 | #define NLM4_UNLOCK 4 | |
231 | extern NLM4_UNLOCKres * nlm4_unlock_4(); | |
232 | extern NLM4_UNLOCKres * nlm4_unlock_4_svc(); | |
233 | #define NLM4_GRANT 5 | |
234 | extern NLM4_GRANTEDres * nlm4_grant_4(); | |
235 | extern NLM4_GRANTEDres * nlm4_grant_4_svc(); | |
236 | #define NLM4_TEST_MSG 6 | |
237 | extern void * nlm4_test_msg_4(); | |
238 | extern void * nlm4_test_msg_4_svc(); | |
239 | #define NLM4_LOCK_MSG 7 | |
240 | extern void * nlm4_lock_msg_4(); | |
241 | extern void * nlm4_lock_msg_4_svc(); | |
242 | #define NLM4_CANCEL_MSG 8 | |
243 | extern void * nlm4_cancel_msg_4(); | |
244 | extern void * nlm4_cancel_msg_4_svc(); | |
245 | #define NLM4_UNLOCK_MSG 9 | |
246 | extern void * nlm4_unlock_msg_4(); | |
247 | extern void * nlm4_unlock_msg_4_svc(); | |
248 | #define NLM4_GRANT_MSG 10 | |
249 | extern void * nlm4_grant_msg_4(); | |
250 | extern void * nlm4_grant_msg_4_svc(); | |
251 | #define NLM4_TEST_RES 11 | |
252 | extern void * nlm4_test_res_4(); | |
253 | extern void * nlm4_test_res_4_svc(); | |
254 | #define NLM4_LOCK_RES 12 | |
255 | extern void * nlm4_lock_res_4(); | |
256 | extern void * nlm4_lock_res_4_svc(); | |
257 | #define NLM4_CANCEL_RES 13 | |
258 | extern void * nlm4_cancel_res_4(); | |
259 | extern void * nlm4_cancel_res_4_svc(); | |
260 | #define NLM4_UNLOCK_RES 14 | |
261 | extern void * nlm4_unlock_res_4(); | |
262 | extern void * nlm4_unlock_res_4_svc(); | |
263 | #define NLM4_GRANT_RES 15 | |
264 | extern void * nlm4_grant_res_4(); | |
265 | extern void * nlm4_grant_res_4_svc(); | |
266 | extern int nlm_program_4_freeresult (); | |
267 | #endif /* K&R C */ | |
268 | ||
269 | /* the zdr functions */ | |
270 | ||
271 | #if defined(__STDC__) || defined(__cplusplus) | |
272 | extern bool_t zdr_nlm_fh4 (ZDR *, nlm_fh4*); | |
273 | extern bool_t zdr_nlm4_oh (ZDR *, nlm4_oh*); | |
274 | extern bool_t zdr_nlm_cookie (ZDR *, nlm_cookie*); | |
275 | extern bool_t zdr_nlmstat4 (ZDR *, nlmstat4*); | |
276 | extern bool_t zdr_nlm4_holder (ZDR *, nlm4_holder*); | |
277 | extern bool_t zdr_nlm4_lock (ZDR *, nlm4_lock*); | |
278 | extern bool_t zdr_nlm4_share (ZDR *, nlm4_share*); | |
279 | extern bool_t zdr_nlm4_testres_denied (ZDR *, nlm4_testres_denied*); | |
280 | extern bool_t zdr_nlm4_testreply (ZDR *, nlm4_testreply*); | |
281 | extern bool_t zdr_NLM4_TESTres (ZDR *, NLM4_TESTres*); | |
282 | extern bool_t zdr_NLM4_TESTargs (ZDR *, NLM4_TESTargs*); | |
283 | extern bool_t zdr_NLM4_CANCres (ZDR *, NLM4_CANCres*); | |
284 | extern bool_t zdr_NLM4_CANCargs (ZDR *, NLM4_CANCargs*); | |
285 | extern bool_t zdr_NLM4_UNLOCKres (ZDR *, NLM4_UNLOCKres*); | |
286 | extern bool_t zdr_NLM4_UNLOCKargs (ZDR *, NLM4_UNLOCKargs*); | |
287 | extern bool_t zdr_NLM4_LOCKres (ZDR *, NLM4_LOCKres*); | |
288 | extern bool_t zdr_NLM4_LOCKargs (ZDR *, NLM4_LOCKargs*); | |
289 | extern bool_t zdr_NLM4_GRANTEDargs (ZDR *, NLM4_GRANTEDargs*); | |
290 | extern bool_t zdr_NLM4_GRANTEDres (ZDR *, NLM4_GRANTEDres*); | |
291 | ||
292 | #else /* K&R C */ | |
293 | extern bool_t zdr_nlm_fh4 (); | |
294 | extern bool_t zdr_nlm4_oh (); | |
295 | extern bool_t zdr_nlm_cookie (); | |
296 | extern bool_t zdr_nlmstat4 (); | |
297 | extern bool_t zdr_nlm4_holder (); | |
298 | extern bool_t zdr_nlm4_lock (); | |
299 | extern bool_t zdr_nlm4_share (); | |
300 | extern bool_t zdr_nlm4_testres_denied (); | |
301 | extern bool_t zdr_nlm4_testreply (); | |
302 | extern bool_t zdr_NLM4_TESTres (); | |
303 | extern bool_t zdr_NLM4_TESTargs (); | |
304 | extern bool_t zdr_NLM4_CANCres (); | |
305 | extern bool_t zdr_NLM4_CANCargs (); | |
306 | extern bool_t zdr_NLM4_UNLOCKres (); | |
307 | extern bool_t zdr_NLM4_UNLOCKargs (); | |
308 | extern bool_t zdr_NLM4_LOCKres (); | |
309 | extern bool_t zdr_NLM4_LOCKargs (); | |
310 | extern bool_t zdr_NLM4_GRANTEDargs (); | |
311 | extern bool_t zdr_NLM4_GRANTEDres (); | |
312 | ||
313 | #endif /* K&R C */ | |
314 | ||
315 | #ifdef __cplusplus | |
316 | } | |
317 | #endif | |
318 | ||
319 | #endif /* !_NLM_H_RPCGEN */ |