summaryrefslogtreecommitdiffstats
path: root/src/cache.h
blob: 7087b035b9e26ee9f20c15f6ebeae156ec4f6f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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