X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=blobmsg_json.h;h=e8036eb09a737650d932613c02c6adb6d240e0a6;hb=fa73496098893e90330040b8f43f2773b42eed12;hp=4471a4e6bfe4865a837f39696cff26c3cb8580db;hpb=76f584c7612dc5ac8090da19b50ab159cb5c586a;p=project%2Flibubox.git diff --git a/blobmsg_json.h b/blobmsg_json.h index 4471a4e..e8036eb 100644 --- a/blobmsg_json.h +++ b/blobmsg_json.h @@ -16,13 +16,19 @@ #ifndef __BLOBMSG_JSON_H #define __BLOBMSG_JSON_H -#include +#ifdef JSONC + #include +#else + #include +#endif + #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_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);