diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-06-06 12:27:58 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-06-07 13:37:45 +0200 |
commit | 43526ec8d1395fe4efbed15e9764b64641b95bcc (patch) | |
tree | ccad569dfd421aadc160f34d67cc527a7cbacb1f /include | |
parent | fb0ed4539c6f02fa9e5a3cf9df2549713451eeca (diff) |
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')
-rw-r--r-- | include/block/qapi.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/block/qapi.h b/include/block/qapi.h index 4f223d1ce4..ab1f48f6f7 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); |