diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 18:29:14 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-13 18:29:14 +0400 |
commit | c360ec576c5a0fe85e6665d07a091264b714a399 (patch) | |
tree | 7a11b5d5dfaf85a9b7936bafe3064f8a433039c1 /blobmsg.h | |
parent | f5245f9887af7bf8f3468bf0ebca3c031da346ed (diff) |
blobmsg: add blobmsg_get_string
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'blobmsg.h')
-rw-r--r-- | blobmsg.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |