diff options
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c index 1e544a2..f95bef6 100644 --- a/src/cache.c +++ b/src/cache.c @@ -423,3 +423,10 @@ void cache_iterate(struct cache *c, { hashtable_iterate(c->h, data, iterate); } + +void cache_iterate_limit(struct cache *c, void *data, + uint32_t from, uint32_t steps, + int (*iterate)(void *data1, void *data2)) +{ + hashtable_iterate_limit(c->h, data, from, steps, iterate); +} |