From 4cb7f91edf1409e64f0fafcef190bb7c37a50854 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 11 Mar 2021 13:34:10 +0100 Subject: 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 --- include/cache.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3