diff options
Diffstat (limited to 'src/cache.h')
-rw-r--r-- | src/cache.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cache.h b/src/cache.h new file mode 100644 index 0000000..7087b03 --- /dev/null +++ b/src/cache.h @@ -0,0 +1,13 @@ +#ifndef foomdcachehfoo +#define foomdcachehfoo + +#include <stdint.h> + +struct syrep_md_cache; + +struct syrep_md_cache* md_cache_open(const char* fn, int ro); +void md_cache_close(struct syrep_md_cache *c); +int md_cache_get(struct syrep_md_cache *c, const char *path, uint8_t digest[16]); +int md_cache_vacuum(struct syrep_md_cache *c); + +#endif |