Import 2.3.47pre4
[davej-history.git] / include / linux / lockd / xdr4.h
blobd9d7e3f75e90f24fac439e0cae2e71729a0a96c3
1 /*
2 * linux/include/linux/lockd/xdr.h
4 * XDR types for the NLM protocol
6 * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
7 */
9 #ifndef LOCKD_XDR4_H
10 #define LOCKD_XDR4_H
12 #include <linux/fs.h>
13 #include <linux/nfs.h>
14 #include <linux/sunrpc/xdr.h>
15 #include <linux/lockd/xdr.h>
17 /* error codes new to NLMv4 */
18 extern u32 nlm4_deadlock, nlm4_rofs, nlm4_stale_fh, nlm4_fbig, nlm4_failed;
21 int nlm4svc_decode_testargs(struct svc_rqst *, u32 *, struct nlm_args *);
22 int nlm4svc_encode_testres(struct svc_rqst *, u32 *, struct nlm_res *);
23 int nlm4svc_decode_lockargs(struct svc_rqst *, u32 *, struct nlm_args *);
24 int nlm4svc_decode_cancargs(struct svc_rqst *, u32 *, struct nlm_args *);
25 int nlm4svc_decode_unlockargs(struct svc_rqst *, u32 *, struct nlm_args *);
26 int nlm4svc_encode_res(struct svc_rqst *, u32 *, struct nlm_res *);
27 int nlm4svc_decode_res(struct svc_rqst *, u32 *, struct nlm_res *);
28 int nlm4svc_encode_void(struct svc_rqst *, u32 *, void *);
29 int nlm4svc_decode_void(struct svc_rqst *, u32 *, void *);
30 int nlm4svc_decode_shareargs(struct svc_rqst *, u32 *, struct nlm_args *);
31 int nlm4svc_encode_shareres(struct svc_rqst *, u32 *, struct nlm_res *);
32 int nlm4svc_decode_notify(struct svc_rqst *, u32 *, struct nlm_args *);
33 int nlm4svc_decode_reboot(struct svc_rqst *, u32 *, struct nlm_reboot *);
35 int nlmclt_encode_testargs(struct rpc_rqst *, u32 *, struct nlm_args *);
36 int nlmclt_encode_lockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
37 int nlmclt_encode_cancargs(struct rpc_rqst *, u32 *, struct nlm_args *);
38 int nlmclt_encode_unlockargs(struct rpc_rqst *, u32 *, struct nlm_args *);
41 #endif /* LOCKD_XDR4_H */