From faea38e7863a6e29f110063388eb93840fcd475c Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 5 Aug 2006 21:31:00 +0000 Subject: multiple snapshot support git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2086 c046a42c-6fe2-441c-8c8c-71466251a162 --- block_int.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'block_int.h') diff --git a/block_int.h b/block_int.h index e40503ea38..b3bc5b3871 100644 --- a/block_int.h +++ b/block_int.h @@ -57,6 +57,17 @@ struct BlockDriver { const uint8_t *buf, int count); int (*bdrv_truncate)(BlockDriverState *bs, int64_t offset); int64_t (*bdrv_getlength)(BlockDriverState *bs); + int (*bdrv_write_compressed)(BlockDriverState *bs, int64_t sector_num, + const uint8_t *buf, int nb_sectors); + + int (*bdrv_snapshot_create)(BlockDriverState *bs, + QEMUSnapshotInfo *sn_info); + int (*bdrv_snapshot_goto)(BlockDriverState *bs, + const char *snapshot_id); + int (*bdrv_snapshot_delete)(BlockDriverState *bs, const char *snapshot_id); + int (*bdrv_snapshot_list)(BlockDriverState *bs, + QEMUSnapshotInfo **psn_info); + int (*bdrv_get_info)(BlockDriverState *bs, BlockDriverInfo *bdi); struct BlockDriver *next; }; -- cgit v1.2.3