ceph: buffer decoding helpers

Helper for decoding into a ceph_buffer, and other misc decoding helpers
we will need.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil
2010-02-02 16:11:19 -08:00
parent 79788c698b
commit c7e337d649
3 changed files with 53 additions and 0 deletions

View File

@@ -34,4 +34,6 @@ static inline void ceph_buffer_put(struct ceph_buffer *b)
kref_put(&b->kref, ceph_buffer_release);
}
extern int ceph_decode_buffer(struct ceph_buffer **b, void **p, void *end);
#endif