diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-12-05 16:35:44 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-06 10:46:52 -0500 |
commit | dd4564715eae2c4136f278da9ae1c3bb5af3e509 (patch) | |
tree | a0e6d56de86bdc9ce57f5663d2d0840c3ea3179b /include/linux/sunrpc/xdr.h | |
parent | 9d29231690925915015c21c1fff73c7118099843 (diff) |
SUNRPC: Rename skb_reader_t and friends
Clean-up: hch suggested that the RPC client shouldn't pollute the name
space used by the generic skb manipulation routines in net/core/skbuff.c.
Rename a couple of types in xdr.h to adhere to this convention.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/xdr.h')
-rw-r--r-- | include/linux/sunrpc/xdr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/sunrpc/xdr.h b/include/linux/sunrpc/xdr.h index a06aab278fe0..9e340fa23c06 100644 --- a/include/linux/sunrpc/xdr.h +++ b/include/linux/sunrpc/xdr.h | |||
@@ -148,19 +148,19 @@ extern int write_bytes_to_xdr_buf(struct xdr_buf *, unsigned int, void *, unsign | |||
148 | /* | 148 | /* |
149 | * Helper structure for copying from an sk_buff. | 149 | * Helper structure for copying from an sk_buff. |
150 | */ | 150 | */ |
151 | typedef struct { | 151 | struct xdr_skb_reader { |
152 | struct sk_buff *skb; | 152 | struct sk_buff *skb; |
153 | unsigned int offset; | 153 | unsigned int offset; |
154 | size_t count; | 154 | size_t count; |
155 | __wsum csum; | 155 | __wsum csum; |
156 | } skb_reader_t; | 156 | }; |
157 | 157 | ||
158 | typedef size_t (*skb_read_actor_t)(skb_reader_t *desc, void *to, size_t len); | 158 | typedef size_t (*xdr_skb_read_actor)(struct xdr_skb_reader *desc, void *to, size_t len); |
159 | 159 | ||
160 | size_t xdr_skb_read_bits(skb_reader_t *desc, void *to, size_t len); | 160 | size_t xdr_skb_read_bits(struct xdr_skb_reader *desc, void *to, size_t len); |
161 | extern int csum_partial_copy_to_xdr(struct xdr_buf *, struct sk_buff *); | 161 | extern int csum_partial_copy_to_xdr(struct xdr_buf *, struct sk_buff *); |
162 | extern ssize_t xdr_partial_copy_from_skb(struct xdr_buf *, unsigned int, | 162 | extern ssize_t xdr_partial_copy_from_skb(struct xdr_buf *, unsigned int, |
163 | skb_reader_t *, skb_read_actor_t); | 163 | struct xdr_skb_reader *, xdr_skb_read_actor); |
164 | 164 | ||
165 | extern int xdr_encode_word(struct xdr_buf *, unsigned int, u32); | 165 | extern int xdr_encode_word(struct xdr_buf *, unsigned int, u32); |
166 | extern int xdr_decode_word(struct xdr_buf *, unsigned int, u32 *); | 166 | extern int xdr_decode_word(struct xdr_buf *, unsigned int, u32 *); |