projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5245f9
)
blobmsg: add blobmsg_get_string
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Jan 2013 14:29:14 +0000
(15:29 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Jan 2013 14:29:14 +0000
(15:29 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
blobmsg.h
patch
|
blob
|
history
diff --git
a/blobmsg.h
b/blobmsg.h
index 056f79a7dcd465fc3e835c13536acbf420345647..44f1f3b428f6e79fafcbdb9c3ee441b193b7ac3a 100644
(file)
--- 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);