libceph: define ceph_extract_encoded_string()
authorAlex Elder <elder@inktank.com>
Wed, 11 Jul 2012 13:24:45 +0000 (08:24 -0500)
committerSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 16:29:57 +0000 (09:29 -0700)
commitf8c36c58accd5c53a472b5c289910565b3df9f9d
tree905ff1a9df30c0200732af71b806c39145dcd641
parentad4f232f28e8059fa1de51f3127d8a6a2759ef16
libceph: define ceph_extract_encoded_string()

This adds a new utility routine which will return a dynamically-
allocated buffer containing a string that has been decoded from ceph
over-the-wire format.  It also returns the length of the string
if the address of a size variable is supplied to receive it.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
include/linux/ceph/decode.h