From 1a0e960e5d655a004ce7071fae3c477030a0c517 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 12 Sep 2024 13:40:01 +0200 Subject: [PATCH] lib: add printbuf.h API from json This API proposes to use the sprintbuf() method to facilitate the forge of buffers in json. Note that this buffer is limited to 128 bytes, so it can not be used everywhere as it without any checks. Signed-off-by: Philippe Guibert --- lib/json.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/json.h b/lib/json.h index 4763803acd24..b6b146bc734e 100644 --- a/lib/json.h +++ b/lib/json.h @@ -13,6 +13,7 @@ extern "C" { #include "command.h" #include "printfrr.h" #include +#include /* * FRR style JSON iteration.