projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usock: add helper waiting for socket to be ready
[project/libubox.git]
/
blobmsg_json.h
diff --git
a/blobmsg_json.h
b/blobmsg_json.h
index
242657d
..
cd9ed33
100644
(file)
--- a/
blobmsg_json.h
+++ b/
blobmsg_json.h
@@
-16,12
+16,15
@@
#ifndef __BLOBMSG_JSON_H
#define __BLOBMSG_JSON_H
#ifndef __BLOBMSG_JSON_H
#define __BLOBMSG_JSON_H
-#include <json/json.h>
+struct json_object;
+
#include <stdbool.h>
#include "blobmsg.h"
#include <stdbool.h>
#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_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);
typedef const char *(*blobmsg_json_format_t)(void *priv, struct blob_attr *attr);