From c360ec576c5a0fe85e6665d07a091264b714a399 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 13 Jan 2013 15:29:14 +0100 Subject: [PATCH] blobmsg: add blobmsg_get_string Signed-off-by: Felix Fietkau --- blobmsg.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blobmsg.h b/blobmsg.h index 056f79a..44f1f3b 100644 --- a/blobmsg.h +++ b/blobmsg.h @@ -183,6 +183,11 @@ static inline uint64_t blobmsg_get_u64(struct blob_attr *attr) return be64_to_cpu(*(uint64_t *) blobmsg_data(attr)); } +static inline char *blobmsg_get_string(struct blob_attr *attr) +{ + return blobmsg_data(attr); +} + void *blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, int maxlen); void blobmsg_add_string_buffer(struct blob_buf *buf);