X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=blobmsg_json.h;h=cd9ed33e4c49d258ded70598a26c71b61a8d17b1;hp=e8036eb09a737650d932613c02c6adb6d240e0a6;hb=d133da5562b36d5ac871cbe927bb9ecdf0569a51;hpb=54a0b49326904fc3281c72cd9d9f1fe950e39d05 diff --git a/blobmsg_json.h b/blobmsg_json.h index e8036eb..cd9ed33 100644 --- a/blobmsg_json.h +++ b/blobmsg_json.h @@ -16,17 +16,13 @@ #ifndef __BLOBMSG_JSON_H #define __BLOBMSG_JSON_H -#ifdef JSONC - #include -#else - #include -#endif +struct json_object; #include #include "blobmsg.h" -bool blobmsg_add_object(struct blob_buf *b, json_object *obj); -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);