aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/content_store.c
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2020-09-09 11:59:36 +0200
committerJordan Augé <jordan.auge+fdio@cisco.com>2020-09-21 14:49:29 +0200
commit7356408ca1554468c9d7b9840aaaee28b4341c8d (patch)
treef57bfcc87be4cf5b51b86e5c847b4cde24c0d5e0 /hicn-light/src/hicn/core/content_store.c
parentfe310f8b7a54f31b7270107b57b5ffcc00966f45 (diff)
[HICN-563] listener and connection tables
Change-Id: I88b85a61908d97bda1afb08d31c3bf10b4d9c5c5 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/core/content_store.c')
-rw-r--r--hicn-light/src/hicn/core/content_store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/core/content_store.c b/hicn-light/src/hicn/core/content_store.c
index 7ed2bd838..77d40ace5 100644
--- a/hicn-light/src/hicn/core/content_store.c
+++ b/hicn-light/src/hicn/core/content_store.c
@@ -46,7 +46,7 @@ do {
content_store_t *
-content_store_create(content_store_type_t type, size_t max_elts)
+_content_store_create(content_store_type_t type, size_t init_size, size_t max_size)
{
content_store_t * cs = malloc(sizeof(content_store_t));
if (!cs)
@@ -56,7 +56,7 @@ content_store_create(content_store_type_t type, size_t max_elts)
cs->type = type;
// XXX TODO an entry = data + metadata specific to each policy
- pool_init(cs->entries, max_elts);
+ pool_init(cs->entries, init_size);
// data
// options