From e5f5b81d65a5ed9b34910a58707b870d677c6183 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 29 Dec 2020 23:07:18 +0000 Subject: Refactor libdcache, expose dcache_clean_expired() --- src/include/s6-dns/dcache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/s6-dns/dcache.h b/src/include/s6-dns/dcache.h index 177102e..5209750 100644 --- a/src/include/s6-dns/dcache.h +++ b/src/include/s6-dns/dcache.h @@ -44,6 +44,8 @@ extern void dcache_init (dcache_t *, uint64_t) ; extern dcache_node_t *dcache_search (dcache_t *, char const *, uint16_t) ; extern int dcache_add (dcache_t *, uint64_t, char const *, uint16_t, char const *, uint16_t, tain_t const *, tain_t const *) ; #define dcache_add_g(d, max, key, keylen, data, datalen, expire) dcache_add(d, max, key, keylen, data, datalen, (expire), &STAMP) +extern void dcache_clean_expired (dcache_t *, tain_t const *) ; +#define dcache_clean_expired_g(d) dcache_clean_expired((d), &STAMP) extern void dcache_free (dcache_t *) ; extern int dcache_save (dcache_t const *, char const *) ; -- cgit v1.3.1