From c3f5307a3d343edef27fb294de24121f09ae167a Mon Sep 17 00:00:00 2001 From: Vitaly Lavrov Date: Tue, 6 Feb 2018 13:59:42 +0300 Subject: Update libcache Using ndpi_calloc(), ndpi_free() in libcache. Fixing warnings about mixing declaration and code. --- src/lib/third_party/include/libcache.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/third_party/include') diff --git a/src/lib/third_party/include/libcache.h b/src/lib/third_party/include/libcache.h index 53632616e..7f84b89ad 100644 --- a/src/lib/third_party/include/libcache.h +++ b/src/lib/third_party/include/libcache.h @@ -29,6 +29,10 @@ SOFTWARE. #include +typedef struct cache_entry *cache_entry; + +typedef struct cache_entry_map *cache_entry_map; + /** * @brief Codes representing the result of some functions * @@ -99,5 +103,7 @@ cache_result cache_remove(cache_t cache, void *item, uint32_t item_size); */ void cache_free(cache_t cache); +cache_entry cache_entry_new(void); +cache_entry_map cache_entry_map_new(void); #endif -- cgit v1.2.3