path: root/include/nftables.h
diff options
authorVarsha Rao <>2017-07-17 13:59:07 +0200
committerPablo Neira Ayuso <>2017-07-17 14:26:31 +0200
commitd2b93afad7a67840d16d424b3cf5ce5255fca7ad (patch)
tree739c88495c1b33f9066bd38aa0545a88b25042f7 /include/nftables.h
parente0146fa254496dc12187053cd0cd6e5d20eb6a43 (diff)
src: Remove __init and __exit macro definitions.
Add nft_init and nft_exit functions, which calls _init and _exit functions in main.c file. Remove __init and __exit macro definitions as libnftables library will be created soon. Rename realm_table_init() and realm_table_exit() functions to avoid ambiguity as realm_table_rt_init(), realm_table_meta_init, realm_table_rt_exit() and realm_table_meta_exit() in rt.c and meta.c files. Signed-off-by: Varsha Rao <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/nftables.h')
1 files changed, 16 insertions, 0 deletions
diff --git a/include/nftables.h b/include/nftables.h
index 70bf6b5a..640d3c7e 100644
--- a/include/nftables.h
+++ b/include/nftables.h
@@ -119,4 +119,20 @@ struct mnl_socket;
int nft_run(struct nft_ctx *nft, struct mnl_socket *nf_sock, void *scanner,
struct parser_state *state, struct list_head *msgs);
+void ct_label_table_init(void);
+void mark_table_init(void);
+void gmp_init(void);
+void realm_table_rt_init(void);
+void devgroup_table_init(void);
+void realm_table_meta_init(void);
+void xt_init(void);
+void nft_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 nft_exit(void);