blob: aeeee8409d4320644a1f618f5cd25b815be52f1c [file] [log] [blame]
Jeff Kinga941d5e2010-04-01 20:07:40 -04001#ifndef NOTES_CACHE_H
2#define NOTES_CACHE_H
3
4#include "notes.h"
5
6struct notes_cache {
7 struct notes_tree tree;
8 char *validity;
9};
10
11void notes_cache_init(struct notes_cache *c, const char *name,
12 const char *validity);
13int notes_cache_write(struct notes_cache *c);
14
brian m. carlson569aa372017-05-06 22:09:58 +000015char *notes_cache_get(struct notes_cache *c, struct object_id *oid, size_t
Jeff Kinga941d5e2010-04-01 20:07:40 -040016 *outsize);
brian m. carlson569aa372017-05-06 22:09:58 +000017int notes_cache_put(struct notes_cache *c, struct object_id *oid,
Jeff Kinga941d5e2010-04-01 20:07:40 -040018 const char *data, size_t size);
19
20#endif /* NOTES_CACHE_H */