1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Server-owned revision inputs. No client values or mutable DAM paths. */
#ifndef SIGNET_SNAPSHOT_H
#define SIGNET_SNAPSHOT_H
#include <stddef.h>
#include <hiredis/hiredis.h>
#include "conf.h"
#include "yyjson.h"
/* Creates a new flat directory; caller removes it if its submit rolls back. */
char *snapshot_create(const struct conf *, redisContext *, const char *org,
int revision, yyjson_val *layout, const char *dir, char *err, size_t errsz);
void snapshot_remove(const char *dir);
int snapshot_verify(yyjson_val *, const char *dir, char *err, size_t errsz);
#endif