From af038fcf186496ba07fe1cf59263b6741a0988da Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 22 Aug 2017 18:01:44 +0200 Subject: src: add include_paths to struct nft_ctx Not convenient to keep this as static for the upcoming library, so let's move it where it belongs. Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/nftables.h') diff --git a/include/nftables.h b/include/nftables.h index 994b5111..8399b1ae 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -39,6 +39,8 @@ struct nft_cache { }; struct nft_ctx { + const char *include_paths[INCLUDE_PATHS_MAX]; + unsigned int num_include_paths; struct output_ctx output; bool check; struct nft_cache cache; @@ -46,7 +48,6 @@ struct nft_ctx { extern unsigned int max_errors; extern unsigned int debug_level; -extern const char *include_paths[INCLUDE_PATHS_MAX]; enum nftables_exit_codes { NFT_EXIT_SUCCESS = 0, -- cgit v1.2.3