diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:49:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:49:36 +0000 |
commit | 5ec6074f0633939fd17d94111d10c6c6b062978c (patch) | |
tree | bfaa17b5a64abc66c918e9c70969e519d9e1df8e /notes-cache.h | |
parent | Initial commit. (diff) | |
download | git-5ec6074f0633939fd17d94111d10c6c6b062978c.tar.xz git-5ec6074f0633939fd17d94111d10c6c6b062978c.zip |
Adding upstream version 1:2.30.2.upstream/1%2.30.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'notes-cache.h')
-rw-r--r-- | notes-cache.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/notes-cache.h b/notes-cache.h new file mode 100644 index 0000000..56f8c98 --- /dev/null +++ b/notes-cache.h @@ -0,0 +1,22 @@ +#ifndef NOTES_CACHE_H +#define NOTES_CACHE_H + +#include "notes.h" + +struct repository; + +struct notes_cache { + struct notes_tree tree; + char *validity; +}; + +void notes_cache_init(struct repository *r, struct notes_cache *c, + const char *name, const char *validity); +int notes_cache_write(struct notes_cache *c); + +char *notes_cache_get(struct notes_cache *c, struct object_id *oid, size_t + *outsize); +int notes_cache_put(struct notes_cache *c, struct object_id *oid, + const char *data, size_t size); + +#endif /* NOTES_CACHE_H */ |