diff options
Diffstat (limited to 'include/cache.h')
-rw-r--r-- | include/cache.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/cache.h b/include/cache.h index 987b122b..4d91a736 100644 --- a/include/cache.h +++ b/include/cache.h @@ -72,4 +72,19 @@ struct chain *chain_cache_find(const struct table *table, const char *name); void set_cache_add(struct set *set, struct table *table); struct set *set_cache_find(const struct table *table, const char *name); +struct cache { + struct list_head *ht; + struct list_head list; +}; + +struct cache_item { + struct list_head hlist; + struct list_head list; +}; + +void cache_init(struct cache *cache); +void cache_free(struct cache *cache); +void cache_add(struct cache_item *item, struct cache *cache, uint32_t hash); +void cache_del(struct cache_item *item); + #endif /* _NFT_CACHE_H_ */ |