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:
4bc1a3a
)
blobmsg: add blobmsg_len() for consistency (similar to blob_len)
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 20 Oct 2013 11:19:51 +0000
(13:19 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 20 Oct 2013 11:19:51 +0000
(13:19 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
blobmsg.h
patch
|
blob
|
history
diff --git
a/blobmsg.h
b/blobmsg.h
index 1e497f77041784882b00ce40e2aade7c232f3c3d..4619643e27d6c97b19878d3cfcaee65fef4e68fa 100644
(file)
--- a/
blobmsg.h
+++ b/
blobmsg.h
@@
-78,6
+78,11
@@
static inline int blobmsg_data_len(const struct blob_attr *attr)
return blob_len(attr) - (end - start);
}
+static inline int blobmsg_len(const struct blob_attr *attr)
+{
+ return blobmsg_data_len(attr);
+}
+
bool blobmsg_check_attr(const struct blob_attr *attr, bool name);
bool blobmsg_check_attr_list(const struct blob_attr *attr, int type);
int blobmsg_parse(const struct blobmsg_policy *policy, int policy_len,