Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blobmsg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/blobmsg.h b/blobmsg.h
index 1e497f7..4619643 100644
--- 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,