diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 23:23:28 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 23:23:28 +0300 |
commit | 0918243e90e64117d898d782de683597216f3137 (patch) | |
tree | 84e66d0ceac0a306afabf29a2b5e944cef3a7c46 /blobmsg.h | |
parent | 677e7bc0b332a09fde6142119f42e5bac11979d3 (diff) |
move json formatting to the blobmsg_json library
Diffstat (limited to 'blobmsg.h')
-rw-r--r-- | blobmsg.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -164,17 +164,6 @@ void blobmsg_add_string_buffer(struct blob_buf *buf); /* blobmsg to json formatting */ -typedef const char *(*blobmsg_json_format_t)(void *priv, struct blob_attr *attr); - -char *blobmsg_format_json_with_cb(struct blob_attr *attr, bool list, - blobmsg_json_format_t cb, void *priv); - -static inline char *blobmsg_format_json(struct blob_attr *attr, bool list) -{ - return blobmsg_format_json_with_cb(attr, list, NULL, NULL); -} - - #define blobmsg_for_each_attr(pos, attr, rem) \ for (rem = blobmsg_data_len(attr), pos = blobmsg_data(attr); \ (blob_pad_len(pos) <= rem) && \ |