From 1360696c2d6ed7083a71979c8382c9d34df12cf0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 30 Jul 2024 14:36:22 +0000 Subject: More stuff Signed-off-by: Laurent Bercot --- src/include/shibari/dcache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/shibari/dcache.h b/src/include/shibari/dcache.h index 50fc44d..1ec9fb6 100644 --- a/src/include/shibari/dcache.h +++ b/src/include/shibari/dcache.h @@ -42,7 +42,8 @@ struct dcache_s #define DCACHE_ZERO { .storage = GENSETDYN_ZERO, .by_key = AVLTREE_ZERO, .by_entry = AVLTREE_ZERO, .by_expire = AVLTREE_ZERO, .max = 0, .size = 0, .motion = 0 } extern void dcache_init (dcache_t *, uint64_t) ; -extern dcache_node_t *dcache_search (dcache_t *, char const *, uint16_t) ; +extern dcache_node_t *dcache_search (dcache_t *, char const *, uint16_t, tain const *) ; +#define dcache_search_g(d, key, keylen) dcache_search(d, key, (keylen), &STAMP) extern int dcache_add (dcache_t *, char const *, uint16_t, char const *, uint16_t, tain const *, tain const *) ; #define dcache_add_g(d, key, keylen, data, datalen, expire) dcache_add(d, key, keylen, data, datalen, (expire), &STAMP) extern void dcache_clean_expired (dcache_t *, tain const *) ; -- cgit v1.3.1