From 2b8f691bd43db5ee120d3d73b1bac6643773b7dc Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 13 Apr 2018 16:52:35 +0200 Subject: parser_bison: Pass struct nft_ctx to parser_init() Signature of parser_init() got quite huge, so simply pass the whole context pointer to it - most of the parameters are just taken from there anyway. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- include/parser.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/parser.h b/include/parser.h index 79612757..ea41ca03 100644 --- a/include/parser.h +++ b/include/parser.h @@ -31,10 +31,8 @@ struct parser_state { struct mnl_socket; -extern void parser_init(struct mnl_socket *nf_sock, struct nft_cache *cache, - struct parser_state *state, struct list_head *msgs, - struct list_head *cmds, unsigned int debug_level, - struct output_ctx *octx); +extern void parser_init(struct nft_ctx *nft, struct parser_state *state, + struct list_head *msgs, struct list_head *cmds); extern int nft_parse(struct nft_ctx *ctx, void *, struct parser_state *state); extern void *scanner_init(struct parser_state *state); -- cgit v1.2.3