diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-10-20 15:19:51 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-10-20 15:19:51 +0400 |
commit | 914ef8f6b002c8c57c54b8c8376facac25e1c551 (patch) | |
tree | 88b0cba7bacb1f97cff8c73966589e9e175ec0dd /blobmsg.h | |
parent | 4bc1a3a46be02bda354eb4f81f809e48d2fdb215 (diff) |
blobmsg: add blobmsg_len() for consistency (similar to blob_len)
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
@@ -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, |