summaryrefslogtreecommitdiff
path: root/lib/json.h
diff options
context:
space:
mode:
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2020-05-17 10:57:35 -0700
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2020-10-26 10:33:21 -0700
commita2339ed9e31b88e2f7f83297e270fbb2fe09a88a (patch)
tree423c3898f7d019c4ac5cf5cbff14f5b9a86ffa24 /lib/json.h
parent72f2674a9526572b243026b8e809688ae814d5a8 (diff)
lib, bgpd: move json_array_string_add to lib
json_array_string_add is used to add a string entry into a JSON list. This API is needed by zebra so moving it from bgpd to lib. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'lib/json.h')
-rw-r--r--lib/json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/json.h b/lib/json.h
index afe0b175da..fe208f4fa9 100644
--- a/lib/json.h
+++ b/lib/json.h
@@ -57,6 +57,7 @@ extern void json_object_boolean_true_add(struct json_object *obj,
const char *key);
extern struct json_object *json_object_lock(struct json_object *obj);
extern void json_object_free(struct json_object *obj);
+extern void json_array_string_add(json_object *json, const char *str);
#define JSON_STR "JavaScript Object Notation\n"