xref: /freebsd/sys/nlm/nlm_prot_clnt.c (revision aa1207ea4f030c50a91bca6a3df950ca25113d5a)
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 
6 #include <sys/param.h>
7 #include <sys/lock.h>
8 #include <sys/mutex.h>
9 #include <sys/systm.h>
10 
11 #include <nlm/nlm_prot.h>
12 #include <sys/cdefs.h>
13 #ifndef lint
14 __RCSID("$NetBSD: nlm_prot.x,v 1.6 2000/06/07 14:30:15 bouyer Exp $");
15 #endif /* not lint */
16 enum clnt_stat
17 nlm_sm_notify_0(struct nlm_sm_status *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
18 {
19 	return (CLNT_CALL_EXT(clnt, ext, NLM_SM_NOTIFY,
20 		(xdrproc_t) xdr_nlm_sm_status, (caddr_t) argp,
21 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
22 		timo));
23 }
24 
25 enum clnt_stat
26 nlm_test_1(struct nlm_testargs *argp, nlm_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
27 {
28 	return (CLNT_CALL_EXT(clnt, ext, NLM_TEST,
29 		(xdrproc_t) xdr_nlm_testargs, (caddr_t) argp,
30 		(xdrproc_t) xdr_nlm_testres, (caddr_t) clnt_res,
31 		timo));
32 }
33 
34 enum clnt_stat
35 nlm_lock_1(struct nlm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
36 {
37 	return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK,
38 		(xdrproc_t) xdr_nlm_lockargs, (caddr_t) argp,
39 		(xdrproc_t) xdr_nlm_res, (caddr_t) clnt_res,
40 		timo));
41 }
42 
43 enum clnt_stat
44 nlm_cancel_1(struct nlm_cancargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
45 {
46 	return (CLNT_CALL_EXT(clnt, ext, NLM_CANCEL,
47 		(xdrproc_t) xdr_nlm_cancargs, (caddr_t) argp,
48 		(xdrproc_t) xdr_nlm_res, (caddr_t) clnt_res,
49 		timo));
50 }
51 
52 enum clnt_stat
53 nlm_unlock_1(struct nlm_unlockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
54 {
55 	return (CLNT_CALL_EXT(clnt, ext, NLM_UNLOCK,
56 		(xdrproc_t) xdr_nlm_unlockargs, (caddr_t) argp,
57 		(xdrproc_t) xdr_nlm_res, (caddr_t) clnt_res,
58 		timo));
59 }
60 
61 enum clnt_stat
62 nlm_granted_1(struct nlm_testargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
63 {
64 	return (CLNT_CALL_EXT(clnt, ext, NLM_GRANTED,
65 		(xdrproc_t) xdr_nlm_testargs, (caddr_t) argp,
66 		(xdrproc_t) xdr_nlm_res, (caddr_t) clnt_res,
67 		timo));
68 }
69 
70 enum clnt_stat
71 nlm_test_msg_1(struct nlm_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
72 {
73 	return (CLNT_CALL_EXT(clnt, ext, NLM_TEST_MSG,
74 		(xdrproc_t) xdr_nlm_testargs, (caddr_t) argp,
75 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
76 		timo));
77 }
78 
79 enum clnt_stat
80 nlm_lock_msg_1(struct nlm_lockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
81 {
82 	return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK_MSG,
83 		(xdrproc_t) xdr_nlm_lockargs, (caddr_t) argp,
84 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
85 		timo));
86 }
87 
88 enum clnt_stat
89 nlm_cancel_msg_1(struct nlm_cancargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
90 {
91 	return (CLNT_CALL_EXT(clnt, ext, NLM_CANCEL_MSG,
92 		(xdrproc_t) xdr_nlm_cancargs, (caddr_t) argp,
93 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
94 		timo));
95 }
96 
97 enum clnt_stat
98 nlm_unlock_msg_1(struct nlm_unlockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
99 {
100 	return (CLNT_CALL_EXT(clnt, ext, NLM_UNLOCK_MSG,
101 		(xdrproc_t) xdr_nlm_unlockargs, (caddr_t) argp,
102 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
103 		timo));
104 }
105 
106 enum clnt_stat
107 nlm_granted_msg_1(struct nlm_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
108 {
109 	return (CLNT_CALL_EXT(clnt, ext, NLM_GRANTED_MSG,
110 		(xdrproc_t) xdr_nlm_testargs, (caddr_t) argp,
111 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
112 		timo));
113 }
114 
115 enum clnt_stat
116 nlm_test_res_1(nlm_testres *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
117 {
118 	return (CLNT_CALL_EXT(clnt, ext, NLM_TEST_RES,
119 		(xdrproc_t) xdr_nlm_testres, (caddr_t) argp,
120 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
121 		timo));
122 }
123 
124 enum clnt_stat
125 nlm_lock_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
126 {
127 	return (CLNT_CALL_EXT(clnt, ext, NLM_LOCK_RES,
128 		(xdrproc_t) xdr_nlm_res, (caddr_t) argp,
129 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
130 		timo));
131 }
132 
133 enum clnt_stat
134 nlm_cancel_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
135 {
136 	return (CLNT_CALL_EXT(clnt, ext, NLM_CANCEL_RES,
137 		(xdrproc_t) xdr_nlm_res, (caddr_t) argp,
138 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
139 		timo));
140 }
141 
142 enum clnt_stat
143 nlm_unlock_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
144 {
145 	return (CLNT_CALL_EXT(clnt, ext, NLM_UNLOCK_RES,
146 		(xdrproc_t) xdr_nlm_res, (caddr_t) argp,
147 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
148 		timo));
149 }
150 
151 enum clnt_stat
152 nlm_granted_res_1(nlm_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
153 {
154 	return (CLNT_CALL_EXT(clnt, ext, NLM_GRANTED_RES,
155 		(xdrproc_t) xdr_nlm_res, (caddr_t) argp,
156 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
157 		timo));
158 }
159 
160 enum clnt_stat
161 nlm_share_3(nlm_shareargs *argp, nlm_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
162 {
163 	return (CLNT_CALL_EXT(clnt, ext, NLM_SHARE,
164 		(xdrproc_t) xdr_nlm_shareargs, (caddr_t) argp,
165 		(xdrproc_t) xdr_nlm_shareres, (caddr_t) clnt_res,
166 		timo));
167 }
168 
169 enum clnt_stat
170 nlm_unshare_3(nlm_shareargs *argp, nlm_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
171 {
172 	return (CLNT_CALL_EXT(clnt, ext, NLM_UNSHARE,
173 		(xdrproc_t) xdr_nlm_shareargs, (caddr_t) argp,
174 		(xdrproc_t) xdr_nlm_shareres, (caddr_t) clnt_res,
175 		timo));
176 }
177 
178 enum clnt_stat
179 nlm_nm_lock_3(nlm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
180 {
181 	return (CLNT_CALL_EXT(clnt, ext, NLM_NM_LOCK,
182 		(xdrproc_t) xdr_nlm_lockargs, (caddr_t) argp,
183 		(xdrproc_t) xdr_nlm_res, (caddr_t) clnt_res,
184 		timo));
185 }
186 
187 enum clnt_stat
188 nlm_free_all_3(nlm_notify *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
189 {
190 	return (CLNT_CALL_EXT(clnt, ext, NLM_FREE_ALL,
191 		(xdrproc_t) xdr_nlm_notify, (caddr_t) argp,
192 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
193 		timo));
194 }
195 
196 enum clnt_stat
197 nlm4_test_4(nlm4_testargs *argp, nlm4_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
198 {
199 	return (CLNT_CALL_EXT(clnt, ext, NLM4_TEST,
200 		(xdrproc_t) xdr_nlm4_testargs, (caddr_t) argp,
201 		(xdrproc_t) xdr_nlm4_testres, (caddr_t) clnt_res,
202 		timo));
203 }
204 
205 enum clnt_stat
206 nlm4_lock_4(nlm4_lockargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
207 {
208 	return (CLNT_CALL_EXT(clnt, ext, NLM4_LOCK,
209 		(xdrproc_t) xdr_nlm4_lockargs, (caddr_t) argp,
210 		(xdrproc_t) xdr_nlm4_res, (caddr_t) clnt_res,
211 		timo));
212 }
213 
214 enum clnt_stat
215 nlm4_cancel_4(nlm4_cancargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
216 {
217 	return (CLNT_CALL_EXT(clnt, ext, NLM4_CANCEL,
218 		(xdrproc_t) xdr_nlm4_cancargs, (caddr_t) argp,
219 		(xdrproc_t) xdr_nlm4_res, (caddr_t) clnt_res,
220 		timo));
221 }
222 
223 enum clnt_stat
224 nlm4_unlock_4(nlm4_unlockargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
225 {
226 	return (CLNT_CALL_EXT(clnt, ext, NLM4_UNLOCK,
227 		(xdrproc_t) xdr_nlm4_unlockargs, (caddr_t) argp,
228 		(xdrproc_t) xdr_nlm4_res, (caddr_t) clnt_res,
229 		timo));
230 }
231 
232 enum clnt_stat
233 nlm4_granted_4(nlm4_testargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
234 {
235 	return (CLNT_CALL_EXT(clnt, ext, NLM4_GRANTED,
236 		(xdrproc_t) xdr_nlm4_testargs, (caddr_t) argp,
237 		(xdrproc_t) xdr_nlm4_res, (caddr_t) clnt_res,
238 		timo));
239 }
240 
241 enum clnt_stat
242 nlm4_test_msg_4(nlm4_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
243 {
244 	return (CLNT_CALL_EXT(clnt, ext, NLM4_TEST_MSG,
245 		(xdrproc_t) xdr_nlm4_testargs, (caddr_t) argp,
246 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
247 		timo));
248 }
249 
250 enum clnt_stat
251 nlm4_lock_msg_4(nlm4_lockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
252 {
253 	return (CLNT_CALL_EXT(clnt, ext, NLM4_LOCK_MSG,
254 		(xdrproc_t) xdr_nlm4_lockargs, (caddr_t) argp,
255 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
256 		timo));
257 }
258 
259 enum clnt_stat
260 nlm4_cancel_msg_4(nlm4_cancargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
261 {
262 	return (CLNT_CALL_EXT(clnt, ext, NLM4_CANCEL_MSG,
263 		(xdrproc_t) xdr_nlm4_cancargs, (caddr_t) argp,
264 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
265 		timo));
266 }
267 
268 enum clnt_stat
269 nlm4_unlock_msg_4(nlm4_unlockargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
270 {
271 	return (CLNT_CALL_EXT(clnt, ext, NLM4_UNLOCK_MSG,
272 		(xdrproc_t) xdr_nlm4_unlockargs, (caddr_t) argp,
273 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
274 		timo));
275 }
276 
277 enum clnt_stat
278 nlm4_granted_msg_4(nlm4_testargs *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
279 {
280 	return (CLNT_CALL_EXT(clnt, ext, NLM4_GRANTED_MSG,
281 		(xdrproc_t) xdr_nlm4_testargs, (caddr_t) argp,
282 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
283 		timo));
284 }
285 
286 enum clnt_stat
287 nlm4_test_res_4(nlm4_testres *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
288 {
289 	return (CLNT_CALL_EXT(clnt, ext, NLM4_TEST_RES,
290 		(xdrproc_t) xdr_nlm4_testres, (caddr_t) argp,
291 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
292 		timo));
293 }
294 
295 enum clnt_stat
296 nlm4_lock_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
297 {
298 	return (CLNT_CALL_EXT(clnt, ext, NLM4_LOCK_RES,
299 		(xdrproc_t) xdr_nlm4_res, (caddr_t) argp,
300 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
301 		timo));
302 }
303 
304 enum clnt_stat
305 nlm4_cancel_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
306 {
307 	return (CLNT_CALL_EXT(clnt, ext, NLM4_CANCEL_RES,
308 		(xdrproc_t) xdr_nlm4_res, (caddr_t) argp,
309 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
310 		timo));
311 }
312 
313 enum clnt_stat
314 nlm4_unlock_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
315 {
316 	return (CLNT_CALL_EXT(clnt, ext, NLM4_UNLOCK_RES,
317 		(xdrproc_t) xdr_nlm4_res, (caddr_t) argp,
318 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
319 		timo));
320 }
321 
322 enum clnt_stat
323 nlm4_granted_res_4(nlm4_res *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
324 {
325 	return (CLNT_CALL_EXT(clnt, ext, NLM4_GRANTED_RES,
326 		(xdrproc_t) xdr_nlm4_res, (caddr_t) argp,
327 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
328 		timo));
329 }
330 
331 enum clnt_stat
332 nlm4_share_4(nlm4_shareargs *argp, nlm4_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
333 {
334 	return (CLNT_CALL_EXT(clnt, ext, NLM4_SHARE,
335 		(xdrproc_t) xdr_nlm4_shareargs, (caddr_t) argp,
336 		(xdrproc_t) xdr_nlm4_shareres, (caddr_t) clnt_res,
337 		timo));
338 }
339 
340 enum clnt_stat
341 nlm4_unshare_4(nlm4_shareargs *argp, nlm4_shareres *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
342 {
343 	return (CLNT_CALL_EXT(clnt, ext, NLM4_UNSHARE,
344 		(xdrproc_t) xdr_nlm4_shareargs, (caddr_t) argp,
345 		(xdrproc_t) xdr_nlm4_shareres, (caddr_t) clnt_res,
346 		timo));
347 }
348 
349 enum clnt_stat
350 nlm4_nm_lock_4(nlm4_lockargs *argp, nlm4_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
351 {
352 	return (CLNT_CALL_EXT(clnt, ext, NLM4_NM_LOCK,
353 		(xdrproc_t) xdr_nlm4_lockargs, (caddr_t) argp,
354 		(xdrproc_t) xdr_nlm4_res, (caddr_t) clnt_res,
355 		timo));
356 }
357 
358 enum clnt_stat
359 nlm4_free_all_4(nlm4_notify *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, struct timeval timo)
360 {
361 	return (CLNT_CALL_EXT(clnt, ext, NLM4_FREE_ALL,
362 		(xdrproc_t) xdr_nlm4_notify, (caddr_t) argp,
363 		(xdrproc_t) xdr_void, (caddr_t) clnt_res,
364 		timo));
365 }
366