blobmsg: add blobmsg_len() for consistency (similar to blob_len)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
4bc1a3a46b
commit
914ef8f6b0
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@ static inline int blobmsg_data_len(const struct blob_attr *attr)
|
||||||
return blob_len(attr) - (end - start);
|
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(const struct blob_attr *attr, bool name);
|
||||||
bool blobmsg_check_attr_list(const struct blob_attr *attr, int type);
|
bool blobmsg_check_attr_list(const struct blob_attr *attr, int type);
|
||||||
int blobmsg_parse(const struct blobmsg_policy *policy, int policy_len,
|
int blobmsg_parse(const struct blobmsg_policy *policy, int policy_len,
|
||||||
|
|
Loading…
Reference in a new issue