summaryrefslogtreecommitdiffstats
path: root/include/nftables.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-08-22 18:01:44 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-08-23 23:42:33 +0200
commitaf038fcf186496ba07fe1cf59263b6741a0988da (patch)
treea72b21a2d372ab7d8e14ada11eade07c9ff491ec /include/nftables.h
parent7c43dc46179a6f85406eb861e970cbb06bac05d2 (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r--include/nftables.h3
1 files changed, 2 insertions, 1 deletions
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,