diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-08 00:30:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-08-08 12:03:57 +0200 |
commit | 45cb29a2ada4edfc2b547fe023d923ce0299a61d (patch) | |
tree | f47fb5792e1d6cfaad2ef7efe83fc37c2833b927 /include/nftables.h | |
parent | a805eab34e34aaf2f08c607e770ec0b8df992f4a (diff) |
src: remove global symbol_table
Store symbol tables in context object instead. Use the nft_ctx object to
store the dynamic symbol table. Pass it on to the parse_ctx object so
this can be accessed from the parse routines. This dynamic symbol table
is also accesible from the output_ctx object for print routines.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r-- | include/nftables.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/include/nftables.h b/include/nftables.h index 407d7613..ef737c83 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -184,19 +184,17 @@ struct input_descriptor { off_t line_offset; }; -void ct_label_table_init(void); -void mark_table_init(void); +void ct_label_table_init(struct nft_ctx *ctx); +void mark_table_init(struct nft_ctx *ctx); void gmp_init(void); -void realm_table_rt_init(void); -void devgroup_table_init(void); -void realm_table_meta_init(void); +void realm_table_rt_init(struct nft_ctx *ctx); +void devgroup_table_init(struct nft_ctx *ctx); void xt_init(void); -void ct_label_table_exit(void); -void mark_table_exit(void); -void realm_table_meta_exit(void); -void devgroup_table_exit(void); -void realm_table_rt_exit(void); +void ct_label_table_exit(struct nft_ctx *ctx); +void mark_table_exit(struct nft_ctx *ctx); +void devgroup_table_exit(struct nft_ctx *ctx); +void realm_table_rt_exit(struct nft_ctx *ctx); int nft_print(struct output_ctx *octx, const char *fmt, ...) __attribute__((format(printf, 2, 3))); |