]> git.proxmox.com Git - mirror_frr.git/commit - lib/json.h
lib: add printfrr to json string helpers
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 17 Nov 2021 10:59:12 +0000 (11:59 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 17 Nov 2021 15:01:30 +0000 (16:01 +0100)
commit2c4dfddb01cd7dfb28f410dca866738486981ca6
treeaeef9d54486a5b3d83ea3444d0da36d3d1f8dcc0
parenta8dfd147a0373fb0430ec3bf3499a952ee6f593a
lib: add printfrr to json string helpers

... these should probably have been added ages ago.
`json_object_string_addf(json, "key", "%pFX", prefix)` is super useful.

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