blobmsg: add blobmsg_parse_array_attr
Wrapper around blobmsg_parse_array, similar to blobmsg_parse_attr Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
b09b316aea
commit
eac92a4d5d
1 changed files with 8 additions and 1 deletions
|
@ -182,7 +182,14 @@ static inline int
|
|||
blobmsg_parse_attr(const struct blobmsg_policy *policy, int policy_len,
|
||||
struct blob_attr **tb, struct blob_attr *data)
|
||||
{
|
||||
return blobmsg_parse(policy, policy_len, tb, blobmsg_data(data), blobmsg_len(data));
|
||||
return blobmsg_parse(policy, policy_len, tb, blobmsg_data(data), blobmsg_len(data));
|
||||
}
|
||||
|
||||
static inline int
|
||||
blobmsg_parse_array_attr(const struct blobmsg_policy *policy, int policy_len,
|
||||
struct blob_attr **tb, struct blob_attr *data)
|
||||
{
|
||||
return blobmsg_parse_array(policy, policy_len, tb, blobmsg_data(data), blobmsg_len(data));
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
|
Loading…
Reference in a new issue