diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-04 23:57:59 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-04 23:57:59 +0300 |
commit | 29598e3dc850c2edf721704bf00f6a825077ff6e (patch) | |
tree | d35b80dc349ddcf941730f8155ada659ca9ab23d /blobmsg.h | |
parent | 36ddbe83b3e8e91500e3fa1e350b6c3cbc4b1ccc (diff) |
add functions for allocating and adding a string buffer field
Diffstat (limited to 'blobmsg.h')
-rw-r--r-- | blobmsg.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -139,6 +139,9 @@ static inline int blobmsg_buf_init(struct blob_buf *buf) 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) \ |