add a json to blobmsg parsing library
[project/libubox.git] / blobmsg_json.h
diff --git a/blobmsg_json.h b/blobmsg_json.h
new file mode 100644 (file)
index 0000000..9374f42
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef __BLOBMSG_JSON_H
+#define __BLOBMSG_JSON_H
+
+#include <json/json.h>
+#include <stdbool.h>
+
+struct blob_buf;
+
+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);
+
+#endif