QEMU-Nyx-fork/nyx/snapshot/block/nyx_block_snapshot.h
Sergej Schumilo 8a88edc2a1 auto-apply clang-format
- including vl.c & kvm-all.c
2022-10-16 23:51:13 +02:00

21 lines
710 B
C

#pragma once
#include "nyx/snapshot/block/block_cow.h"
#include <stdint.h>
typedef struct nyx_block_s {
cow_cache_t **cow_cache_array;
uint32_t cow_cache_array_size;
} nyx_block_t;
nyx_block_t *nyx_block_snapshot_init_from_file(const char *folder, bool pre_snapshot);
nyx_block_t *nyx_block_snapshot_init(void);
void nyx_block_snapshot_switch_to_incremental(nyx_block_t *);
void nyx_block_snapshot_flush(nyx_block_t *self);
void nyx_block_snapshot_switch_incremental(nyx_block_t *self);
void nyx_block_snapshot_disable_incremental(nyx_block_t *self);
void nyx_block_snapshot_reset(nyx_block_t *self);
void nyx_block_snapshot_serialize(nyx_block_t *self, const char *snapshot_folder);