summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-03-11 13:34:10 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-03-11 14:31:42 +0100
commit4cb7f91edf1409e64f0fafcef190bb7c37a50854 (patch)
treeee16977d9b82f5e07840e285775c8cbc493a2722 /include
parent281beafa5afad6e4bc0ac18d218f5d76f4973d92 (diff)
src: move remaining cache functions in rule.c to cache.c
Move all the cache logic to src/cache.c Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/cache.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cache.h b/include/cache.h
index baa2bb29..a892b7fc 100644
--- a/include/cache.h
+++ b/include/cache.h
@@ -52,9 +52,11 @@ struct table;
struct chain;
struct handle;
+int cache_init(struct netlink_ctx *ctx, unsigned int flags);
+int cache_update(struct nft_ctx *nft, unsigned int flags, struct list_head *msgs);
+void cache_release(struct nft_cache *cache);
+
struct nftnl_chain_list *chain_cache_dump(struct netlink_ctx *ctx, int *err);
-int chain_cache_init(struct netlink_ctx *ctx, struct table *table,
- struct nftnl_chain_list *chain_cache);
void chain_cache_add(struct chain *chain, struct table *table);
struct chain *chain_cache_find(const struct table *table,
const struct handle *handle);