diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-01-31 05:46:37 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-01-31 05:46:37 +0300 |
commit | f2b9272e0b427545e34b27ba4be4a5b1bbc6ad69 (patch) | |
tree | 5235965dc5a50052eea83e39ba4a2c1c8e153334 /blob.h | |
parent | ec593913f4a5ee31d4a295708ba91beb0d439ffe (diff) |
make blob attribute checking available externally
Diffstat (limited to 'blob.h')
-rw-r--r-- | blob.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -218,6 +218,7 @@ extern struct blob_attr *blob_new(struct blob_buf *buf, int id, int payload); extern void *blob_nest_start(struct blob_buf *buf, int id); extern void blob_nest_end(struct blob_buf *buf, void *cookie); extern struct blob_attr *blob_put(struct blob_buf *buf, int id, const void *ptr, int len); +extern bool blob_check_type(void *ptr, int len, int type); extern int blob_parse(struct blob_attr *attr, struct blob_attr **data, const struct blob_attr_info *info, int max); static inline struct blob_attr * |