projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
738884e
)
add a blobmsg_type() inline function
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 12 Sep 2011 11:37:53 +0000
(13:37 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 12 Sep 2011 11:37:53 +0000
(13:37 +0200)
blobmsg.h
patch
|
blob
|
history
diff --git
a/blobmsg.h
b/blobmsg.h
index
0b4565f
..
a63fcad
100644
(file)
--- a/
blobmsg.h
+++ b/
blobmsg.h
@@
-56,6
+56,11
@@
static inline const char *blobmsg_name(const struct blob_attr *attr)
return (const char *) hdr->name;
}
+static inline int blobmsg_type(const struct blob_attr *attr)
+{
+ return blob_id(attr);
+}
+
static inline void *blobmsg_data(const struct blob_attr *attr)
{
struct blobmsg_hdr *hdr = blob_data(attr);