diff options
author | BenoƮt Canet <benoit@irqsave.net> | 2014-01-23 21:31:34 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-01-24 16:07:08 +0100 |
commit | c13163fba151f0be5176eaf55907bc1dbff3a1d4 (patch) | |
tree | 07a5cbbf02a889f372c6650e288f0dcf7dd23eb7 /include/block | |
parent | 6913c0c2ce00c0e886b2bd20b05073090fa5308a (diff) | |
download | qemu-c13163fba151f0be5176eaf55907bc1dbff3a1d4.tar.gz qemu-c13163fba151f0be5176eaf55907bc1dbff3a1d4.tar.bz2 qemu-c13163fba151f0be5176eaf55907bc1dbff3a1d4.zip |
qmp: Add QMP query-named-block-nodes to list the named BlockDriverState nodes.
Signed-off-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block.h | 1 | ||||
-rw-r--r-- | include/block/qapi.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h index 501b555885..13654ede8b 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -379,6 +379,7 @@ void bdrv_eject(BlockDriverState *bs, bool eject_flag); const char *bdrv_get_format_name(BlockDriverState *bs); BlockDriverState *bdrv_find(const char *name); BlockDriverState *bdrv_find_node(const char *node_name); +BlockDeviceInfoList *bdrv_named_nodes_list(void); BlockDriverState *bdrv_next(BlockDriverState *bs); void bdrv_iterate(void (*it)(void *opaque, BlockDriverState *bs), void *opaque); diff --git a/include/block/qapi.h b/include/block/qapi.h index 9518ee4001..e92c00daf6 100644 --- a/include/block/qapi.h +++ b/include/block/qapi.h @@ -29,6 +29,7 @@ #include "block/block.h" #include "block/snapshot.h" +BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs); int bdrv_query_snapshot_info_list(BlockDriverState *bs, SnapshotInfoList **p_list, Error **errp); |