projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add functions for allocating and adding a string buffer field
[project/libubox.git]
/
blobmsg.h
diff --git
a/blobmsg.h
b/blobmsg.h
index
e978235
..
dce5b85
100644
(file)
--- a/
blobmsg.h
+++ b/
blobmsg.h
@@
-139,6
+139,9
@@
static inline int blobmsg_buf_init(struct blob_buf *buf)
return blob_buf_init(buf, BLOBMSG_TYPE_TABLE);
}
return blob_buf_init(buf, BLOBMSG_TYPE_TABLE);
}
+void *blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, int maxlen);
+void blobmsg_add_string_buffer(struct blob_buf *buf);
+
char *blobmsg_format_json(struct blob_attr *attr, bool list);
#define blobmsg_for_each_attr(pos, attr, rem) \
char *blobmsg_format_json(struct blob_attr *attr, bool list);
#define blobmsg_for_each_attr(pos, attr, rem) \