Improve snapshot handling and CLI workflows

This commit is contained in:
2026-11-01 16:52:17 +01:00
parent c63530da34
commit 2a1051980b
23 changed files with 944 additions and 495 deletions

13
include/snapshot.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef SNAPSHOT_H
#define SNAPSHOT_H
#include "types.h"
#include "status.h"
/* Read every record in a single pass. Supports FSNAP|1 and legacy headerless
snapshots. On success ownership passes to the caller; on failure outputs
remain empty. A regular file changed during the read fails with EAGAIN. */
int snapshot_load(const char *file, struct RecordObject ***out, int *count);
void snapshot_release(struct RecordObject **records, int count);
#endif