summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>2013-06-06 12:27:59 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2013-06-07 13:37:45 +0200
commit553a7e871822d933beaefbd596f0e4eed1614373 (patch)
treed93e7aa0274a10461ae726a0ab216cfd62771c66 /include
parent43526ec8d1395fe4efbed15e9764b64641b95bcc (diff)
downloadqemu-553a7e871822d933beaefbd596f0e4eed1614373.tar.gz
qemu-553a7e871822d933beaefbd596f0e4eed1614373.tar.bz2
qemu-553a7e871822d933beaefbd596f0e4eed1614373.zip
qmp: add ImageInfo in BlockDeviceInfo used by query-block
Now image info will be retrieved as an embbed json object inside BlockDeviceInfo, backing chain info and all related internal snapshot info can be got in the enhanced recursive structure of ImageInfo. New recursive member *backing-image is added to reflect the backing chain status. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/qapi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/block/qapi.h b/include/block/qapi.h
index ab1f48f6f7..0496cc9282 100644
--- a/include/block/qapi.h
+++ b/include/block/qapi.h
@@ -35,7 +35,9 @@ int bdrv_query_snapshot_info_list(BlockDriverState *bs,
void bdrv_query_image_info(BlockDriverState *bs,
ImageInfo **p_info,
Error **errp);
-BlockInfo *bdrv_query_info(BlockDriverState *s);
+void bdrv_query_info(BlockDriverState *bs,
+ BlockInfo **p_info,
+ Error **errp);
BlockStats *bdrv_query_stats(const BlockDriverState *bs);
void bdrv_snapshot_dump(fprintf_function func_fprintf, void *f,