aboutsummaryrefslogtreecommitdiff
path: root/src/lib/third_party/include/libcache.h
diff options
context:
space:
mode:
authorVitaly Lavrov <vel21ripn@gmail.com>2018-02-06 13:59:42 +0300
committerVitaly Lavrov <vel21ripn@gmail.com>2018-02-06 14:06:38 +0300
commitc3f5307a3d343edef27fb294de24121f09ae167a (patch)
tree23a6131f9aaa0d4aa892b25a011baec86b573ad0 /src/lib/third_party/include/libcache.h
parentd18824a73fa7f05122bc35000a8a1b538c62fc58 (diff)
Update libcache
Using ndpi_calloc(), ndpi_free() in libcache. Fixing warnings about mixing declaration and code.
Diffstat (limited to 'src/lib/third_party/include/libcache.h')
-rw-r--r--src/lib/third_party/include/libcache.h6
1 files changed, 6 insertions, 0 deletions
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 <stdint.h>
+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