nlm_prot.h revision 1.1 1 1.1 dholland /* $NetBSD: nlm_prot.h,v 1.1 2013/09/30 07:19:46 dholland Exp $ */
2 1.1 dholland /*
3 1.1 dholland * Please do not edit this file.
4 1.1 dholland * It was generated using rpcgen.
5 1.1 dholland */
6 1.1 dholland /* FreeBSD: head/sys/nlm/nlm_prot.h 180025 2008-06-26 10:21:54Z dfr */
7 1.1 dholland /* $NetBSD: nlm_prot.h,v 1.1 2013/09/30 07:19:46 dholland Exp $ */
8 1.1 dholland
9 1.1 dholland #ifndef _NLM_PROT_H_RPCGEN
10 1.1 dholland #define _NLM_PROT_H_RPCGEN
11 1.1 dholland
12 1.1 dholland #include <rpc/rpc.h>
13 1.1 dholland
14 1.1 dholland #ifdef __cplusplus
15 1.1 dholland extern "C" {
16 1.1 dholland #endif
17 1.1 dholland
18 1.1 dholland #define LM_MAXSTRLEN 1024
19 1.1 dholland #define MAXNAMELEN LM_MAXSTRLEN+1
20 1.1 dholland
21 1.1 dholland enum nlm_stats {
22 1.1 dholland nlm_granted = 0,
23 1.1 dholland nlm_denied = 1,
24 1.1 dholland nlm_denied_nolocks = 2,
25 1.1 dholland nlm_blocked = 3,
26 1.1 dholland nlm_denied_grace_period = 4,
27 1.1 dholland nlm_deadlck = 5
28 1.1 dholland };
29 1.1 dholland typedef enum nlm_stats nlm_stats;
30 1.1 dholland
31 1.1 dholland struct nlm_holder {
32 1.1 dholland bool_t exclusive;
33 1.1 dholland int svid;
34 1.1 dholland netobj oh;
35 1.1 dholland u_int l_offset;
36 1.1 dholland u_int l_len;
37 1.1 dholland };
38 1.1 dholland typedef struct nlm_holder nlm_holder;
39 1.1 dholland
40 1.1 dholland struct nlm_testrply {
41 1.1 dholland nlm_stats stat;
42 1.1 dholland union {
43 1.1 dholland struct nlm_holder holder;
44 1.1 dholland } nlm_testrply_u;
45 1.1 dholland };
46 1.1 dholland typedef struct nlm_testrply nlm_testrply;
47 1.1 dholland
48 1.1 dholland struct nlm_stat {
49 1.1 dholland nlm_stats stat;
50 1.1 dholland };
51 1.1 dholland typedef struct nlm_stat nlm_stat;
52 1.1 dholland
53 1.1 dholland struct nlm_res {
54 1.1 dholland netobj cookie;
55 1.1 dholland nlm_stat stat;
56 1.1 dholland };
57 1.1 dholland typedef struct nlm_res nlm_res;
58 1.1 dholland
59 1.1 dholland struct nlm_testres {
60 1.1 dholland netobj cookie;
61 1.1 dholland nlm_testrply stat;
62 1.1 dholland };
63 1.1 dholland typedef struct nlm_testres nlm_testres;
64 1.1 dholland
65 1.1 dholland struct nlm_lock {
66 1.1 dholland char *caller_name;
67 1.1 dholland netobj fh;
68 1.1 dholland netobj oh;
69 1.1 dholland int svid;
70 1.1 dholland u_int l_offset;
71 1.1 dholland u_int l_len;
72 1.1 dholland };
73 1.1 dholland typedef struct nlm_lock nlm_lock;
74 1.1 dholland
75 1.1 dholland struct nlm_lockargs {
76 1.1 dholland netobj cookie;
77 1.1 dholland bool_t block;
78 1.1 dholland bool_t exclusive;
79 1.1 dholland struct nlm_lock alock;
80 1.1 dholland bool_t reclaim;
81 1.1 dholland int state;
82 1.1 dholland };
83 1.1 dholland typedef struct nlm_lockargs nlm_lockargs;
84 1.1 dholland
85 1.1 dholland struct nlm_cancargs {
86 1.1 dholland netobj cookie;
87 1.1 dholland bool_t block;
88 1.1 dholland bool_t exclusive;
89 1.1 dholland struct nlm_lock alock;
90 1.1 dholland };
91 1.1 dholland typedef struct nlm_cancargs nlm_cancargs;
92 1.1 dholland
93 1.1 dholland struct nlm_testargs {
94 1.1 dholland netobj cookie;
95 1.1 dholland bool_t exclusive;
96 1.1 dholland struct nlm_lock alock;
97 1.1 dholland };
98 1.1 dholland typedef struct nlm_testargs nlm_testargs;
99 1.1 dholland
100 1.1 dholland struct nlm_unlockargs {
101 1.1 dholland netobj cookie;
102 1.1 dholland struct nlm_lock alock;
103 1.1 dholland };
104 1.1 dholland typedef struct nlm_unlockargs nlm_unlockargs;
105 1.1 dholland /*
106 1.1 dholland * The following enums are actually bit encoded for efficient
107 1.1 dholland * boolean algebra.... DON'T change them.....
108 1.1 dholland */
109 1.1 dholland
110 1.1 dholland enum fsh_mode {
111 1.1 dholland fsm_DN = 0,
112 1.1 dholland fsm_DR = 1,
113 1.1 dholland fsm_DW = 2,
114 1.1 dholland fsm_DRW = 3
115 1.1 dholland };
116 1.1 dholland typedef enum fsh_mode fsh_mode;
117 1.1 dholland
118 1.1 dholland enum fsh_access {
119 1.1 dholland fsa_NONE = 0,
120 1.1 dholland fsa_R = 1,
121 1.1 dholland fsa_W = 2,
122 1.1 dholland fsa_RW = 3
123 1.1 dholland };
124 1.1 dholland typedef enum fsh_access fsh_access;
125 1.1 dholland
126 1.1 dholland struct nlm_share {
127 1.1 dholland char *caller_name;
128 1.1 dholland netobj fh;
129 1.1 dholland netobj oh;
130 1.1 dholland fsh_mode mode;
131 1.1 dholland fsh_access access;
132 1.1 dholland };
133 1.1 dholland typedef struct nlm_share nlm_share;
134 1.1 dholland
135 1.1 dholland struct nlm_shareargs {
136 1.1 dholland netobj cookie;
137 1.1 dholland nlm_share share;
138 1.1 dholland bool_t reclaim;
139 1.1 dholland };
140 1.1 dholland typedef struct nlm_shareargs nlm_shareargs;
141 1.1 dholland
142 1.1 dholland struct nlm_shareres {
143 1.1 dholland netobj cookie;
144 1.1 dholland nlm_stats stat;
145 1.1 dholland int sequence;
146 1.1 dholland };
147 1.1 dholland typedef struct nlm_shareres nlm_shareres;
148 1.1 dholland
149 1.1 dholland struct nlm_notify {
150 1.1 dholland char *name;
151 1.1 dholland long state;
152 1.1 dholland };
153 1.1 dholland typedef struct nlm_notify nlm_notify;
154 1.1 dholland /* definitions for NLM version 4 */
155 1.1 dholland
156 1.1 dholland enum nlm4_stats {
157 1.1 dholland nlm4_granted = 0,
158 1.1 dholland nlm4_denied = 1,
159 1.1 dholland nlm4_denied_nolocks = 2,
160 1.1 dholland nlm4_blocked = 3,
161 1.1 dholland nlm4_denied_grace_period = 4,
162 1.1 dholland nlm4_deadlck = 5,
163 1.1 dholland nlm4_rofs = 6,
164 1.1 dholland nlm4_stale_fh = 7,
165 1.1 dholland nlm4_fbig = 8,
166 1.1 dholland nlm4_failed = 9
167 1.1 dholland };
168 1.1 dholland typedef enum nlm4_stats nlm4_stats;
169 1.1 dholland
170 1.1 dholland struct nlm4_stat {
171 1.1 dholland nlm4_stats stat;
172 1.1 dholland };
173 1.1 dholland typedef struct nlm4_stat nlm4_stat;
174 1.1 dholland
175 1.1 dholland struct nlm4_holder {
176 1.1 dholland bool_t exclusive;
177 1.1 dholland u_int32_t svid;
178 1.1 dholland netobj oh;
179 1.1 dholland u_int64_t l_offset;
180 1.1 dholland u_int64_t l_len;
181 1.1 dholland };
182 1.1 dholland typedef struct nlm4_holder nlm4_holder;
183 1.1 dholland
184 1.1 dholland struct nlm4_lock {
185 1.1 dholland char *caller_name;
186 1.1 dholland netobj fh;
187 1.1 dholland netobj oh;
188 1.1 dholland u_int32_t svid;
189 1.1 dholland u_int64_t l_offset;
190 1.1 dholland u_int64_t l_len;
191 1.1 dholland };
192 1.1 dholland typedef struct nlm4_lock nlm4_lock;
193 1.1 dholland
194 1.1 dholland struct nlm4_share {
195 1.1 dholland char *caller_name;
196 1.1 dholland netobj fh;
197 1.1 dholland netobj oh;
198 1.1 dholland fsh_mode mode;
199 1.1 dholland fsh_access access;
200 1.1 dholland };
201 1.1 dholland typedef struct nlm4_share nlm4_share;
202 1.1 dholland
203 1.1 dholland struct nlm4_testrply {
204 1.1 dholland nlm4_stats stat;
205 1.1 dholland union {
206 1.1 dholland struct nlm4_holder holder;
207 1.1 dholland } nlm4_testrply_u;
208 1.1 dholland };
209 1.1 dholland typedef struct nlm4_testrply nlm4_testrply;
210 1.1 dholland
211 1.1 dholland struct nlm4_testres {
212 1.1 dholland netobj cookie;
213 1.1 dholland nlm4_testrply stat;
214 1.1 dholland };
215 1.1 dholland typedef struct nlm4_testres nlm4_testres;
216 1.1 dholland
217 1.1 dholland struct nlm4_testargs {
218 1.1 dholland netobj cookie;
219 1.1 dholland bool_t exclusive;
220 1.1 dholland struct nlm4_lock alock;
221 1.1 dholland };
222 1.1 dholland typedef struct nlm4_testargs nlm4_testargs;
223 1.1 dholland
224 1.1 dholland struct nlm4_res {
225 1.1 dholland netobj cookie;
226 1.1 dholland nlm4_stat stat;
227 1.1 dholland };
228 1.1 dholland typedef struct nlm4_res nlm4_res;
229 1.1 dholland
230 1.1 dholland struct nlm4_lockargs {
231 1.1 dholland netobj cookie;
232 1.1 dholland bool_t block;
233 1.1 dholland bool_t exclusive;
234 1.1 dholland struct nlm4_lock alock;
235 1.1 dholland bool_t reclaim;
236 1.1 dholland int state;
237 1.1 dholland };
238 1.1 dholland typedef struct nlm4_lockargs nlm4_lockargs;
239 1.1 dholland
240 1.1 dholland struct nlm4_cancargs {
241 1.1 dholland netobj cookie;
242 1.1 dholland bool_t block;
243 1.1 dholland bool_t exclusive;
244 1.1 dholland struct nlm4_lock alock;
245 1.1 dholland };
246 1.1 dholland typedef struct nlm4_cancargs nlm4_cancargs;
247 1.1 dholland
248 1.1 dholland struct nlm4_unlockargs {
249 1.1 dholland netobj cookie;
250 1.1 dholland struct nlm4_lock alock;
251 1.1 dholland };
252 1.1 dholland typedef struct nlm4_unlockargs nlm4_unlockargs;
253 1.1 dholland
254 1.1 dholland struct nlm4_shareargs {
255 1.1 dholland netobj cookie;
256 1.1 dholland nlm4_share share;
257 1.1 dholland bool_t reclaim;
258 1.1 dholland };
259 1.1 dholland typedef struct nlm4_shareargs nlm4_shareargs;
260 1.1 dholland
261 1.1 dholland struct nlm4_shareres {
262 1.1 dholland netobj cookie;
263 1.1 dholland nlm4_stats stat;
264 1.1 dholland int sequence;
265 1.1 dholland };
266 1.1 dholland typedef struct nlm4_shareres nlm4_shareres;
267 1.1 dholland
268 1.1 dholland struct nlm_sm_status {
269 1.1 dholland char *mon_name;
270 1.1 dholland int state;
271 1.1 dholland char priv[16];
272 1.1 dholland };
273 1.1 dholland typedef struct nlm_sm_status nlm_sm_status;
274 1.1 dholland
275 1.1 dholland struct nlm4_notify {
276 1.1 dholland char *name;
277 1.1 dholland int32_t state;
278 1.1 dholland };
279 1.1 dholland typedef struct nlm4_notify nlm4_notify;
280 1.1 dholland
281 1.1 dholland #define NLM_PROG ((unsigned long)(100021))
282 1.1 dholland #define NLM_SM ((unsigned long)(0))
283 1.1 dholland
284 1.1 dholland #define NLM_SM_NOTIFY ((unsigned long)(1))
285 1.1 dholland extern enum clnt_stat nlm_sm_notify_0(struct nlm_sm_status *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
286 1.1 dholland extern bool_t nlm_sm_notify_0_svc(struct nlm_sm_status *, void *, struct svc_req *);
287 1.1 dholland #define NLM_VERS ((unsigned long)(1))
288 1.1 dholland
289 1.1 dholland #define NLM_TEST ((unsigned long)(1))
290 1.1 dholland extern enum clnt_stat nlm_test_1(struct nlm_testargs *, nlm_testres *, CLIENT *, struct rpc_callextra *, struct timeval);
291 1.1 dholland extern bool_t nlm_test_1_svc(struct nlm_testargs *, nlm_testres *, struct svc_req *);
292 1.1 dholland #define NLM_LOCK ((unsigned long)(2))
293 1.1 dholland extern enum clnt_stat nlm_lock_1(struct nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
294 1.1 dholland extern bool_t nlm_lock_1_svc(struct nlm_lockargs *, nlm_res *, struct svc_req *);
295 1.1 dholland #define NLM_CANCEL ((unsigned long)(3))
296 1.1 dholland extern enum clnt_stat nlm_cancel_1(struct nlm_cancargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
297 1.1 dholland extern bool_t nlm_cancel_1_svc(struct nlm_cancargs *, nlm_res *, struct svc_req *);
298 1.1 dholland #define NLM_UNLOCK ((unsigned long)(4))
299 1.1 dholland extern enum clnt_stat nlm_unlock_1(struct nlm_unlockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
300 1.1 dholland extern bool_t nlm_unlock_1_svc(struct nlm_unlockargs *, nlm_res *, struct svc_req *);
301 1.1 dholland #define NLM_GRANTED ((unsigned long)(5))
302 1.1 dholland extern enum clnt_stat nlm_granted_1(struct nlm_testargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
303 1.1 dholland extern bool_t nlm_granted_1_svc(struct nlm_testargs *, nlm_res *, struct svc_req *);
304 1.1 dholland #define NLM_TEST_MSG ((unsigned long)(6))
305 1.1 dholland extern enum clnt_stat nlm_test_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
306 1.1 dholland extern bool_t nlm_test_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *);
307 1.1 dholland #define NLM_LOCK_MSG ((unsigned long)(7))
308 1.1 dholland extern enum clnt_stat nlm_lock_msg_1(struct nlm_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
309 1.1 dholland extern bool_t nlm_lock_msg_1_svc(struct nlm_lockargs *, void *, struct svc_req *);
310 1.1 dholland #define NLM_CANCEL_MSG ((unsigned long)(8))
311 1.1 dholland extern enum clnt_stat nlm_cancel_msg_1(struct nlm_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
312 1.1 dholland extern bool_t nlm_cancel_msg_1_svc(struct nlm_cancargs *, void *, struct svc_req *);
313 1.1 dholland #define NLM_UNLOCK_MSG ((unsigned long)(9))
314 1.1 dholland extern enum clnt_stat nlm_unlock_msg_1(struct nlm_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
315 1.1 dholland extern bool_t nlm_unlock_msg_1_svc(struct nlm_unlockargs *, void *, struct svc_req *);
316 1.1 dholland #define NLM_GRANTED_MSG ((unsigned long)(10))
317 1.1 dholland extern enum clnt_stat nlm_granted_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
318 1.1 dholland extern bool_t nlm_granted_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *);
319 1.1 dholland #define NLM_TEST_RES ((unsigned long)(11))
320 1.1 dholland extern enum clnt_stat nlm_test_res_1(nlm_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
321 1.1 dholland extern bool_t nlm_test_res_1_svc(nlm_testres *, void *, struct svc_req *);
322 1.1 dholland #define NLM_LOCK_RES ((unsigned long)(12))
323 1.1 dholland extern enum clnt_stat nlm_lock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
324 1.1 dholland extern bool_t nlm_lock_res_1_svc(nlm_res *, void *, struct svc_req *);
325 1.1 dholland #define NLM_CANCEL_RES ((unsigned long)(13))
326 1.1 dholland extern enum clnt_stat nlm_cancel_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
327 1.1 dholland extern bool_t nlm_cancel_res_1_svc(nlm_res *, void *, struct svc_req *);
328 1.1 dholland #define NLM_UNLOCK_RES ((unsigned long)(14))
329 1.1 dholland extern enum clnt_stat nlm_unlock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
330 1.1 dholland extern bool_t nlm_unlock_res_1_svc(nlm_res *, void *, struct svc_req *);
331 1.1 dholland #define NLM_GRANTED_RES ((unsigned long)(15))
332 1.1 dholland extern enum clnt_stat nlm_granted_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
333 1.1 dholland extern bool_t nlm_granted_res_1_svc(nlm_res *, void *, struct svc_req *);
334 1.1 dholland extern int nlm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
335 1.1 dholland #define NLM_VERSX ((unsigned long)(3))
336 1.1 dholland
337 1.1 dholland #define NLM_SHARE ((unsigned long)(20))
338 1.1 dholland extern enum clnt_stat nlm_share_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
339 1.1 dholland extern bool_t nlm_share_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *);
340 1.1 dholland #define NLM_UNSHARE ((unsigned long)(21))
341 1.1 dholland extern enum clnt_stat nlm_unshare_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
342 1.1 dholland extern bool_t nlm_unshare_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *);
343 1.1 dholland #define NLM_NM_LOCK ((unsigned long)(22))
344 1.1 dholland extern enum clnt_stat nlm_nm_lock_3(nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
345 1.1 dholland extern bool_t nlm_nm_lock_3_svc(nlm_lockargs *, nlm_res *, struct svc_req *);
346 1.1 dholland #define NLM_FREE_ALL ((unsigned long)(23))
347 1.1 dholland extern enum clnt_stat nlm_free_all_3(nlm_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
348 1.1 dholland extern bool_t nlm_free_all_3_svc(nlm_notify *, void *, struct svc_req *);
349 1.1 dholland extern int nlm_prog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
350 1.1 dholland #define NLM_VERS4 ((unsigned long)(4))
351 1.1 dholland
352 1.1 dholland #define NLM4_TEST ((unsigned long)(1))
353 1.1 dholland extern enum clnt_stat nlm4_test_4(nlm4_testargs *, nlm4_testres *, CLIENT *, struct rpc_callextra *, struct timeval);
354 1.1 dholland extern bool_t nlm4_test_4_svc(nlm4_testargs *, nlm4_testres *, struct svc_req *);
355 1.1 dholland #define NLM4_LOCK ((unsigned long)(2))
356 1.1 dholland extern enum clnt_stat nlm4_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
357 1.1 dholland extern bool_t nlm4_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *);
358 1.1 dholland #define NLM4_CANCEL ((unsigned long)(3))
359 1.1 dholland extern enum clnt_stat nlm4_cancel_4(nlm4_cancargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
360 1.1 dholland extern bool_t nlm4_cancel_4_svc(nlm4_cancargs *, nlm4_res *, struct svc_req *);
361 1.1 dholland #define NLM4_UNLOCK ((unsigned long)(4))
362 1.1 dholland extern enum clnt_stat nlm4_unlock_4(nlm4_unlockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
363 1.1 dholland extern bool_t nlm4_unlock_4_svc(nlm4_unlockargs *, nlm4_res *, struct svc_req *);
364 1.1 dholland #define NLM4_GRANTED ((unsigned long)(5))
365 1.1 dholland extern enum clnt_stat nlm4_granted_4(nlm4_testargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
366 1.1 dholland extern bool_t nlm4_granted_4_svc(nlm4_testargs *, nlm4_res *, struct svc_req *);
367 1.1 dholland #define NLM4_TEST_MSG ((unsigned long)(6))
368 1.1 dholland extern enum clnt_stat nlm4_test_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
369 1.1 dholland extern bool_t nlm4_test_msg_4_svc(nlm4_testargs *, void *, struct svc_req *);
370 1.1 dholland #define NLM4_LOCK_MSG ((unsigned long)(7))
371 1.1 dholland extern enum clnt_stat nlm4_lock_msg_4(nlm4_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
372 1.1 dholland extern bool_t nlm4_lock_msg_4_svc(nlm4_lockargs *, void *, struct svc_req *);
373 1.1 dholland #define NLM4_CANCEL_MSG ((unsigned long)(8))
374 1.1 dholland extern enum clnt_stat nlm4_cancel_msg_4(nlm4_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
375 1.1 dholland extern bool_t nlm4_cancel_msg_4_svc(nlm4_cancargs *, void *, struct svc_req *);
376 1.1 dholland #define NLM4_UNLOCK_MSG ((unsigned long)(9))
377 1.1 dholland extern enum clnt_stat nlm4_unlock_msg_4(nlm4_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
378 1.1 dholland extern bool_t nlm4_unlock_msg_4_svc(nlm4_unlockargs *, void *, struct svc_req *);
379 1.1 dholland #define NLM4_GRANTED_MSG ((unsigned long)(10))
380 1.1 dholland extern enum clnt_stat nlm4_granted_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
381 1.1 dholland extern bool_t nlm4_granted_msg_4_svc(nlm4_testargs *, void *, struct svc_req *);
382 1.1 dholland #define NLM4_TEST_RES ((unsigned long)(11))
383 1.1 dholland extern enum clnt_stat nlm4_test_res_4(nlm4_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
384 1.1 dholland extern bool_t nlm4_test_res_4_svc(nlm4_testres *, void *, struct svc_req *);
385 1.1 dholland #define NLM4_LOCK_RES ((unsigned long)(12))
386 1.1 dholland extern enum clnt_stat nlm4_lock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
387 1.1 dholland extern bool_t nlm4_lock_res_4_svc(nlm4_res *, void *, struct svc_req *);
388 1.1 dholland #define NLM4_CANCEL_RES ((unsigned long)(13))
389 1.1 dholland extern enum clnt_stat nlm4_cancel_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
390 1.1 dholland extern bool_t nlm4_cancel_res_4_svc(nlm4_res *, void *, struct svc_req *);
391 1.1 dholland #define NLM4_UNLOCK_RES ((unsigned long)(14))
392 1.1 dholland extern enum clnt_stat nlm4_unlock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
393 1.1 dholland extern bool_t nlm4_unlock_res_4_svc(nlm4_res *, void *, struct svc_req *);
394 1.1 dholland #define NLM4_GRANTED_RES ((unsigned long)(15))
395 1.1 dholland extern enum clnt_stat nlm4_granted_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
396 1.1 dholland extern bool_t nlm4_granted_res_4_svc(nlm4_res *, void *, struct svc_req *);
397 1.1 dholland #define NLM4_SHARE ((unsigned long)(20))
398 1.1 dholland extern enum clnt_stat nlm4_share_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
399 1.1 dholland extern bool_t nlm4_share_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *);
400 1.1 dholland #define NLM4_UNSHARE ((unsigned long)(21))
401 1.1 dholland extern enum clnt_stat nlm4_unshare_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
402 1.1 dholland extern bool_t nlm4_unshare_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *);
403 1.1 dholland #define NLM4_NM_LOCK ((unsigned long)(22))
404 1.1 dholland extern enum clnt_stat nlm4_nm_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
405 1.1 dholland extern bool_t nlm4_nm_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *);
406 1.1 dholland #define NLM4_FREE_ALL ((unsigned long)(23))
407 1.1 dholland extern enum clnt_stat nlm4_free_all_4(nlm4_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
408 1.1 dholland extern bool_t nlm4_free_all_4_svc(nlm4_notify *, void *, struct svc_req *);
409 1.1 dholland extern int nlm_prog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
410 1.1 dholland
411 1.1 dholland /* the xdr functions */
412 1.1 dholland extern bool_t xdr_nlm_stats(XDR *, nlm_stats*);
413 1.1 dholland extern bool_t xdr_nlm_holder(XDR *, nlm_holder*);
414 1.1 dholland extern bool_t xdr_nlm_testrply(XDR *, nlm_testrply*);
415 1.1 dholland extern bool_t xdr_nlm_stat(XDR *, nlm_stat*);
416 1.1 dholland extern bool_t xdr_nlm_res(XDR *, nlm_res*);
417 1.1 dholland extern bool_t xdr_nlm_testres(XDR *, nlm_testres*);
418 1.1 dholland extern bool_t xdr_nlm_lock(XDR *, nlm_lock*);
419 1.1 dholland extern bool_t xdr_nlm_lockargs(XDR *, nlm_lockargs*);
420 1.1 dholland extern bool_t xdr_nlm_cancargs(XDR *, nlm_cancargs*);
421 1.1 dholland extern bool_t xdr_nlm_testargs(XDR *, nlm_testargs*);
422 1.1 dholland extern bool_t xdr_nlm_unlockargs(XDR *, nlm_unlockargs*);
423 1.1 dholland extern bool_t xdr_fsh_mode(XDR *, fsh_mode*);
424 1.1 dholland extern bool_t xdr_fsh_access(XDR *, fsh_access*);
425 1.1 dholland extern bool_t xdr_nlm_share(XDR *, nlm_share*);
426 1.1 dholland extern bool_t xdr_nlm_shareargs(XDR *, nlm_shareargs*);
427 1.1 dholland extern bool_t xdr_nlm_shareres(XDR *, nlm_shareres*);
428 1.1 dholland extern bool_t xdr_nlm_notify(XDR *, nlm_notify*);
429 1.1 dholland extern bool_t xdr_nlm4_stats(XDR *, nlm4_stats*);
430 1.1 dholland extern bool_t xdr_nlm4_stat(XDR *, nlm4_stat*);
431 1.1 dholland extern bool_t xdr_nlm4_holder(XDR *, nlm4_holder*);
432 1.1 dholland extern bool_t xdr_nlm4_lock(XDR *, nlm4_lock*);
433 1.1 dholland extern bool_t xdr_nlm4_share(XDR *, nlm4_share*);
434 1.1 dholland extern bool_t xdr_nlm4_testrply(XDR *, nlm4_testrply*);
435 1.1 dholland extern bool_t xdr_nlm4_testres(XDR *, nlm4_testres*);
436 1.1 dholland extern bool_t xdr_nlm4_testargs(XDR *, nlm4_testargs*);
437 1.1 dholland extern bool_t xdr_nlm4_res(XDR *, nlm4_res*);
438 1.1 dholland extern bool_t xdr_nlm4_lockargs(XDR *, nlm4_lockargs*);
439 1.1 dholland extern bool_t xdr_nlm4_cancargs(XDR *, nlm4_cancargs*);
440 1.1 dholland extern bool_t xdr_nlm4_unlockargs(XDR *, nlm4_unlockargs*);
441 1.1 dholland extern bool_t xdr_nlm4_shareargs(XDR *, nlm4_shareargs*);
442 1.1 dholland extern bool_t xdr_nlm4_shareres(XDR *, nlm4_shareres*);
443 1.1 dholland extern bool_t xdr_nlm_sm_status(XDR *, nlm_sm_status*);
444 1.1 dholland extern bool_t xdr_nlm4_notify(XDR *, nlm4_notify*);
445 1.1 dholland
446 1.1 dholland #ifdef __cplusplus
447 1.1 dholland }
448 1.1 dholland #endif
449 1.1 dholland
450 1.1 dholland #endif /* !_NLM_PROT_H_RPCGEN */
451