index a872dd51b309c6a05a659d9ea4e70a70933fdf35..0b3374f38cf1337e603abf3595aff78eb0a7da48 100644 (file)
ssize_t
sdb_proto_unmarshal_int32(const char *buf, size_t buf_len, uint32_t *v);
+/*
+ * sdb_proto_unmarshal_data:
+ * Read and decode a datum from the specified string. The datum's data will be
+ * allocated dynamically if necessary and will have to be free'd using
+ * sdb_data_free_datum.
+ *
+ * Returns:
+ * - the number of bytes read on success
+ * - a negative value else
+ */
+ssize_t
+sdb_proto_unmarshal_data(const char *buf, size_t len, sdb_data_t *datum);
+
#ifdef __cplusplus
} /* extern "C" */
#endif