]> git.proxmox.com Git - mirror_frr.git/commit - lib/json.c
lib: add JSON printfrr dict-key helper
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 11 Mar 2022 10:42:17 +0000 (11:42 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 11 Mar 2022 12:43:00 +0000 (13:43 +0100)
commit424ec384996cc4d4111989876c446c06374b938e
tree378b64fe1a094e20c3896be389e699b66e59d349
parent64fac7801c25d3bd206d06be7ef2c3d687e70ec0
lib: add JSON printfrr dict-key helper

`json_object_object_add()` adds keys/items to objects/dictionaries.
Useful to have a printfrr based variant for the key there.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/json.c
lib/json.h