Update libcache

Using ndpi_calloc(), ndpi_free() in libcache.
Fixing warnings about mixing declaration and code.
This commit is contained in:
Vitaly Lavrov
2018-02-06 14:06:38 +03:00
parent d18824a73f
commit c3f5307a3d
2 changed files with 46 additions and 33 deletions
+6
View File
@@ -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