projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a blobmsg_type() inline function
[project/libubox.git]
/
blobmsg.h
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);