X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=blobmsg_json.h;h=cd9ed33e4c49d258ded70598a26c71b61a8d17b1;hb=004be15be4f3a8fb0cb781769338f91d0347dafc;hp=242657de3ecdddfc357fe47702a55735379921eb;hpb=6a2e4f449d978e75c839b7794409af3b695ef14e;p=project%2Flibubox.git diff --git a/blobmsg_json.h b/blobmsg_json.h index 242657d..cd9ed33 100644 --- a/blobmsg_json.h +++ b/blobmsg_json.h @@ -16,12 +16,15 @@ #ifndef __BLOBMSG_JSON_H #define __BLOBMSG_JSON_H -#include +struct json_object; + #include #include "blobmsg.h" -bool blobmsg_add_json_element(struct blob_buf *b, const char *name, json_object *obj); +bool blobmsg_add_object(struct blob_buf *b, struct json_object *obj); +bool blobmsg_add_json_element(struct blob_buf *b, const char *name, struct json_object *obj); bool blobmsg_add_json_from_string(struct blob_buf *b, const char *str); +bool blobmsg_add_json_from_file(struct blob_buf *b, const char *file); typedef const char *(*blobmsg_json_format_t)(void *priv, struct blob_attr *attr);