From a2339ed9e31b88e2f7f83297e270fbb2fe09a88a Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Sun, 17 May 2020 10:57:35 -0700 Subject: 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 --- lib/json.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/json.h') 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" -- cgit v1.2.3