From 08c11bc3b329523332f0d7e0eadf6bd4260de67c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 8 May 2018 13:08:33 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/nftables.h') 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 { -- cgit v1.2.3