Skip to content

Commit

Permalink
lib: add printbuf.h API from json
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pguibert6WIND committed Sep 20, 2024
1 parent 107585e commit 1a0e960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern "C" {
#include "command.h"
#include "printfrr.h"
#include <json-c/json.h>
#include <json-c/printbuf.h>

/*
* FRR style JSON iteration.
Expand Down

0 comments on commit 1a0e960

Please sign in to comment.