From fb0ed4539c6f02fa9e5a3cf9df2549713451eeca Mon Sep 17 00:00:00 2001 From: Wenchao Xia Date: Thu, 6 Jun 2013 12:27:57 +0800 Subject: block: add snapshot info query function bdrv_query_snapshot_info_list() This patch adds function bdrv_query_snapshot_info_list(), which will retrieve snapshot info of an image in qmp object format. The implementation is based on the code moved from qemu-img.c with modification to fit more for qmp based block layer API. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake Signed-off-by: Stefan Hajnoczi --- include/block/qapi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/block') diff --git a/include/block/qapi.h b/include/block/qapi.h index e6e568d..4f223d1 100644 --- a/include/block/qapi.h +++ b/include/block/qapi.h @@ -29,7 +29,9 @@ #include "block/block.h" #include "block/snapshot.h" -void bdrv_collect_snapshots(BlockDriverState *bs , ImageInfo *info); +int bdrv_query_snapshot_info_list(BlockDriverState *bs, + SnapshotInfoList **p_list, + Error **errp); void bdrv_collect_image_info(BlockDriverState *bs, ImageInfo *info, const char *filename); -- cgit v1.1