Replace use of blobmsg_check_attr by blobmsg_check_attr_len
[project/libubox.git] / blobmsg.h
index 00e0fdc1d5c65dce44c11e92eefdb1aaa935b856..c44015942a378c53a69df1cfdcd7c06c4332ed5f 100644 (file)
--- a/blobmsg.h
+++ b/blobmsg.h
@@ -107,6 +107,8 @@ static inline size_t blobmsg_len(const struct blob_attr *attr)
 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_len(const struct blob_attr *attr, bool name, size_t len);
+
 /*
  * blobmsg_check_array: validate array/table and return size
  *