From 76f584c7612dc5ac8090da19b50ab159cb5c586a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 6 Jan 2013 02:15:48 +0100 Subject: [PATCH] blobmsg_json: export blobmsg_add_object Signed-off-by: Felix Fietkau --- blobmsg_json.c | 2 +- blobmsg_json.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blobmsg_json.c b/blobmsg_json.c index badf87e..f629d76 100644 --- a/blobmsg_json.c +++ b/blobmsg_json.c @@ -16,7 +16,7 @@ #include "blobmsg.h" #include "blobmsg_json.h" -static bool blobmsg_add_object(struct blob_buf *b, json_object *obj) +bool blobmsg_add_object(struct blob_buf *b, json_object *obj) { json_object_object_foreach(obj, key, val) { if (!blobmsg_add_json_element(b, key, val)) diff --git a/blobmsg_json.h b/blobmsg_json.h index 242657d..4471a4e 100644 --- a/blobmsg_json.h +++ b/blobmsg_json.h @@ -20,6 +20,7 @@ #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);