mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 11:19:52 +00:00
Improve snapshot handling and CLI workflows
This commit is contained in:
13
include/snapshot.h
Normal file
13
include/snapshot.h
Normal 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
|
||||
Reference in New Issue
Block a user