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:
Felix Fietkau 2023-01-03 10:43:44 +01:00
parent b09b316aea
commit eac92a4d5d

View file

@ -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