From 03e3740d654e1e14ccfb8dbfaba605ae72067ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Neira=20Ayuso?= Date: Wed, 31 Jul 2013 15:20:59 +0200 Subject: jansson: Add helper function for building the tree and use it Add a helper function that parses and returns the jansson tree, use it in the table parser. Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- src/internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h index a8ae431..d1c7690 100644 --- a/src/internal.h +++ b/src/internal.h @@ -45,6 +45,7 @@ int nft_jansson_value_parse_val(json_t *root, const char *tag, int type, void *out); const char *nft_jansson_value_parse_str(json_t *root, const char *tag); bool nft_jansson_node_exist(json_t *root, const char *tag); +json_t *nft_jansson_get_root(char *json, const char *tag, json_error_t *err); #endif const char *nft_family2str(uint32_t family); -- cgit v1.2.3