summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-05-08 13:08:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-11 12:16:47 +0200
commit08c11bc3b329523332f0d7e0eadf6bd4260de67c (patch)
tree6f43c9939beb707f3b7ac306741e7fb29c8799b0 /include
parent5cde6acb676fd7831d70e448141b7984df199ee7 (diff)
libnftables: Put bison parsing into dedicated functions
Preparing for an alternative JSON parser, put bison specific details into separate functions. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/nftables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/nftables.h b/include/nftables.h
index f525ba6b..661c1e17 100644
--- a/include/nftables.h
+++ b/include/nftables.h
@@ -38,6 +38,7 @@ struct nft_cache {
};
struct mnl_socket;
+struct parser_state;
struct nft_ctx {
struct mnl_socket *nf_sock;
@@ -49,6 +50,7 @@ struct nft_ctx {
bool check;
struct nft_cache cache;
uint32_t flags;
+ struct parser_state *state;
};
enum nftables_exit_codes {