From c8bae7493d2f2910b57f13ded012e86bdcfb0532 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:47:53 +0200 Subject: Adding upstream version 1:2.39.2. Signed-off-by: Daniel Baumann --- notes-cache.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 notes-cache.h (limited to 'notes-cache.h') 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 */ -- cgit v1.2.3