summaryrefslogtreecommitdiffstats
path: root/lib/json.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-20 20:04:34 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:27:08 +0200
commite91c9247eb43ea5b743ead19edc323bd679c0cd5 (patch)
tree0eb49a087837ebc5d3946e67331cc063145a7bc8 /lib/json.h
parentvrrpd: default to accept mode = true (diff)
downloadfrr-e91c9247eb43ea5b743ead19edc323bd679c0cd5.tar.xz
frr-e91c9247eb43ea5b743ead19edc323bd679c0cd5.zip
lib: add more convenient boolean adder for json
Signed-off-by: Quentin Young <qlyoung@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 a5251662b..b35f221b9 100644
--- a/lib/json.h
+++ b/lib/json.h
@@ -61,6 +61,7 @@ extern void json_object_string_add(struct json_object *obj, const char *key,
const char *s);
extern void json_object_int_add(struct json_object *obj, const char *key,
int64_t i);
+void json_object_boolean_add(struct json_object *obj, const char *key, bool val);
extern void json_object_boolean_false_add(struct json_object *obj,
const char *key);
extern void json_object_boolean_true_add(struct json_object *obj,