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
path: root/blob.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-25 10:44:39 +0400
committerFelix Fietkau <nbd@openwrt.org>2013-10-04 18:55:45 +0400
commitbe458596bd13f0a708d52efaa5c70bac2f8fe97d (patch)
tree0939fc3d8fbc0bf9decfd544807ee55005dbd146 /blob.h
parent460d94d6e8ef48cfad76057660cf0fa957cd0afa (diff)
blob: add blob_put_raw() for copying one or more blob attributes into the buffer directly
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'blob.h')
-rw-r--r--blob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/blob.h b/blob.h
index 88ee01c..846de6e 100644
--- a/blob.h
+++ b/blob.h
@@ -190,6 +190,7 @@ extern struct blob_attr *blob_put(struct blob_buf *buf, int id, const void *ptr,
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);
+extern struct blob_attr *blob_put_raw(struct blob_buf *buf, const void *ptr, int len);
static inline struct blob_attr *
blob_put_string(struct blob_buf *buf, int id, const char *str)