summaryrefslogtreecommitdiffstats
path: root/include/cli.h
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-08-13 10:00:18 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2017-08-14 11:32:21 +0200
commit07b45939972eb81c3c3db21c8589b51a62f4843a (patch)
treeb50dfd024653fd11f63821e2e7e4805dbb16036b /include/cli.h
parentbb8e9e84a1b537ccf1b7abbc9d11af0383801a0d (diff)
src: introduce struct nft_cache
Pass variable cache_initialized and structure list_head as members of structure nft_cache. Joint work with Pablo Neira. Signed-off-by: Varsha Rao <rvarsha016@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/cli.h')
-rw-r--r--include/cli.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cli.h b/include/cli.h
index 21052e32..e5774008 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -6,10 +6,10 @@
struct parser_state;
#ifdef HAVE_LIBREADLINE
extern int cli_init(struct nft_ctx *nft, struct mnl_socket *nf_sock,
- struct parser_state *state);
+ struct nft_cache *cache, struct parser_state *state);
#else
static inline int cli_init(struct nft_ctx *nft, struct mnl_socket *nf_sock,
- struct parser_state *state)
+ struct nft_cache *cache, struct parser_state *state)
{
return -1;
}