diff options
| author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2019-05-17 11:39:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-17 11:39:27 -0700 |
| commit | 7cfaf4b3394de78bc1a48b22d84f118a80f88b98 (patch) | |
| tree | 87ddfdf3ed07c95ca01c470b49dfaa46b26ea2ce /lib/json.c | |
| parent | 02f4c3ab5b33f5f17b592ef7787797a0e43d0785 (diff) | |
| parent | 53ca01e52c487954f68ab7a76f163cf465fb9209 (diff) | |
Merge pull request #4168 from qlyoung/vrrp
VRRP
Diffstat (limited to 'lib/json.c')
| -rw-r--r-- | lib/json.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/json.c b/lib/json.c index 4ea20ba178..efc3794040 100644 --- a/lib/json.c +++ b/lib/json.c @@ -64,6 +64,11 @@ void json_object_boolean_true_add(struct json_object *obj, const char *key) json_object_object_add(obj, key, json_object_new_boolean(1)); } +void json_object_boolean_add(struct json_object *obj, const char *key, bool val) +{ + json_object_object_add(obj, key, json_object_new_boolean(val)); +} + struct json_object *json_object_lock(struct json_object *obj) { return json_object_get(obj); |
