X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=blob.h;h=81a65ae6027441fd16d7bb8752744fa925d2c536;hp=ffd9f9abdd6f7abacbea2feeb9c8da05431aa7e0;hb=5cfe2696f0101dc3b304dbffeefd6723b7ec8453;hpb=a654d2f42b39a355524e8dbbe35b8f8e1671c1c6 diff --git a/blob.h b/blob.h index ffd9f9a..81a65ae 100644 --- a/blob.h +++ b/blob.h @@ -242,6 +242,7 @@ 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(const 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); +extern struct blob_attr *blob_memdup(struct blob_attr *attr); static inline struct blob_attr * blob_put_string(struct blob_buf *buf, int id, const char *str)