diff options
| author | Patrick Ruddy <pat@voltanet.io> | 2020-10-27 16:09:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-27 16:09:45 +0000 |
| commit | dd511712271ae352b25288ecab318f885ade00d6 (patch) | |
| tree | 5e87dda80e297960a309fe9f398e42920704a182 /lib/json.c | |
| parent | aa9d75efafa7e6a5271883db184fc4239f630b7f (diff) | |
| parent | ec779825f897f8a6a6daf521c1f2f4ba6454d03d (diff) | |
Merge pull request #7158 from AnuradhaKaruppiah/mh-df-election
evpn-mh: support for DF election
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 6bea3982e3..cfba6ea3b6 100644 --- a/lib/json.c +++ b/lib/json.c @@ -39,6 +39,11 @@ bool use_json(const int argc, struct cmd_token *argv[]) return false; } +void json_array_string_add(json_object *json, const char *str) +{ + json_object_array_add(json, json_object_new_string(str)); +} + void json_object_string_add(struct json_object *obj, const char *key, const char *s) { |
