aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-09-13 09:38:07 +0000
committerLaurent Bercot <ska@appnovation.com>2024-09-13 09:38:07 +0000
commitfb355e4200fcf98f36a4f3e1fbeb1e16b4761ee6 (patch)
treebf78792e9206e121607ad786432c0b60bbdcdc72 /src/include
parent45c04a53fb9fbefe4dd86514c7563b4af1961dfb (diff)
downloadshibari-fb355e4200fcf98f36a4f3e1fbeb1e16b4761ee6.tar.gz
Push what I have for now
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/shibari/dcache.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/shibari/dcache.h b/src/include/shibari/dcache.h
index 1127249..3e02b54 100644
--- a/src/include/shibari/dcache.h
+++ b/src/include/shibari/dcache.h
@@ -43,14 +43,18 @@ struct dcache_s
extern void dcache_init (dcache *, uint64_t) ;
-extern int dcache_searchnode (dcache *, uint32_t *, char const *, uint16_t, uint16_t, tai const *) ;
-#define dcache_searchnode_g(d, idx, q, qlen, qtype) dcache_searchnode(d, idx, q, qlen, (qtype), tain_secp(&STAMP))
+extern int dcache_search (dcache *, uint32_t *, char const *, uint16_t, uint16_t, tai const *) ;
+#define dcache_search_g(d, idx, q, qlen, qtype) dcache_search(d, idx, q, qlen, (qtype), tain_secp(&STAMP))
extern void dcache_clean_expired (dcache *, tai const *) ;
#define dcache_clean_expired_g(d) dcache_clean_expired((d), tain_secp(&STAMP))
extern void dcache_free (dcache *) ;
+
+extern int dcache_add (dcache *, char const *, uint16_t, uint16_t, char const *, uint16_t, tai const *, tai const *) ;
+#define dcache_add_g(z, q, qlen, qtype, data, datalen, expire) dcache_add(z, q, qlen, qtype, data, datalen, tain_secp(&STAMP), expire)
+
extern int dcache_save (dcache const *, char const *) ;
extern int dcache_load (dcache *, char const *) ;