summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>2013-06-06 12:27:58 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2013-06-07 13:37:45 +0200
commit43526ec8d1395fe4efbed15e9764b64641b95bcc (patch)
treeccad569dfd421aadc160f34d67cc527a7cbacb1f /include/block
parentfb0ed4539c6f02fa9e5a3cf9df2549713451eeca (diff)
downloadhqemu-43526ec8d1395fe4efbed15e9764b64641b95bcc.zip
hqemu-43526ec8d1395fe4efbed15e9764b64641b95bcc.tar.gz
block: add image info query function bdrv_query_image_info()
This patch adds function bdrv_query_image_info(), which will retrieve image info in qmp object format. The implementation is based on the code moved from qemu-img.c, but uses block layer function to get snapshot info. Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/qapi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/block/qapi.h b/include/block/qapi.h
index 4f223d1..ab1f48f 100644
--- a/include/block/qapi.h
+++ b/include/block/qapi.h
@@ -32,9 +32,9 @@
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);
+void bdrv_query_image_info(BlockDriverState *bs,
+ ImageInfo **p_info,
+ Error **errp);
BlockInfo *bdrv_query_info(BlockDriverState *s);
BlockStats *bdrv_query_stats(const BlockDriverState *bs);
OpenPOWER on IntegriCloud