Full rewrite with VSR support

This commit is contained in:
2026-02-20 16:55:29 +01:00
parent 2460817fa4
commit b64517c20e
59 changed files with 5790 additions and 10339 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef CHUNK_STORE_INCLUDED
#define CHUNK_STORE_INCLUDED
#include <stdint.h>
#include <stdbool.h>
#include <lib/basic.h>
typedef struct {
char base_path[256];
} ChunkStore;
int chunk_store_init(ChunkStore *cs, const char *base_path);
void chunk_store_free(ChunkStore *cs);
int chunk_store_write(ChunkStore *cs, SHA256 hash, char *data, uint32_t size);
int chunk_store_read(ChunkStore *cs, SHA256 hash, char *dst, uint32_t size);
bool chunk_store_exists(ChunkStore *cs, SHA256 hash);
int chunk_store_delete(ChunkStore *cs, SHA256 hash);
#endif // CHUNK_STORE_INCLUDED