summaryrefslogtreecommitdiffstats
path: root/src/internal.h
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <alvaroneay@gmail.com>2013-07-31 15:20:59 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-31 16:42:53 +0200
commit03e3740d654e1e14ccfb8dbfaba605ae72067ef6 (patch)
treee9f05c32b12a61e8e44dc4daf5df08478c4f7aed /src/internal.h
parent72ba595e37a73c539aa64d22b2dace3e5bbea3bc (diff)
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 <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r--src/internal.h1
1 files changed, 1 insertions, 0 deletions
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);