path: root/include/ct.h
diff options
authorPablo Neira Ayuso <>2019-08-08 00:30:28 +0200
committerPablo Neira Ayuso <>2019-08-08 12:03:57 +0200
commit45cb29a2ada4edfc2b547fe023d923ce0299a61d (patch)
treef47fb5792e1d6cfaad2ef7efe83fc37c2833b927 /include/ct.h
parenta805eab34e34aaf2f08c607e770ec0b8df992f4a (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 <>
Diffstat (limited to 'include/ct.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ct.h b/include/ct.h
index 063f8cdf..efb2d418 100644
--- a/include/ct.h
+++ b/include/ct.h
@@ -33,7 +33,8 @@ extern struct stmt *notrack_stmt_alloc(const struct location *loc);
extern struct stmt *flow_offload_stmt_alloc(const struct location *loc,
const char *table_name);
extern const char *ct_dir2str(int dir);
-extern const char *ct_label2str(unsigned long value);
+extern const char *ct_label2str(const struct symbol_table *tbl,
+ unsigned long value);
extern const struct datatype ct_dir_type;
extern const struct datatype ct_state_type;