diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-29 23:07:18 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-29 23:07:18 +0000 |
commit | e5f5b81d65a5ed9b34910a58707b870d677c6183 (patch) | |
tree | 6e87cfda96222560751e200ca5ef7dd8d7cd65f4 /src/include | |
parent | 5b063a4db3e631d40c05b77ecc7554ebdf5fff92 (diff) | |
download | s6-dns-e5f5b81d65a5ed9b34910a58707b870d677c6183.tar.xz |
Refactor libdcache, expose dcache_clean_expired()
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/s6-dns/dcache.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 *) ; |