Git 2.29.3
[git/debian.git] / notes-cache.h
blob56f8c98e2445f036b1c3897dce976f419372cb61
1 #ifndef NOTES_CACHE_H
2 #define NOTES_CACHE_H
4 #include "notes.h"
6 struct repository;
8 struct notes_cache {
9 struct notes_tree tree;
10 char *validity;
13 void notes_cache_init(struct repository *r, struct notes_cache *c,
14 const char *name, const char *validity);
15 int notes_cache_write(struct notes_cache *c);
17 char *notes_cache_get(struct notes_cache *c, struct object_id *oid, size_t
18 *outsize);
19 int notes_cache_put(struct notes_cache *c, struct object_id *oid,
20 const char *data, size_t size);
22 #endif /* NOTES_CACHE_H */