diff options
author | Max Reitz <mreitz@redhat.com> | 2013-10-09 10:46:16 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-10-11 10:52:54 +0200 |
commit | eae041fe6f4314962e873615134eefb32cf8ba61 (patch) | |
tree | 669c134a3beade6ff5d9fb897a81630c449bae9d /block.c | |
parent | f2bb8a8a47597634b74c161c44b9980c7f4e50ac (diff) | |
download | qemu-eae041fe6f4314962e873615134eefb32cf8ba61.zip qemu-eae041fe6f4314962e873615134eefb32cf8ba61.tar.gz qemu-eae041fe6f4314962e873615134eefb32cf8ba61.tar.bz2 |
block: Add bdrv_get_specific_info
Add a function for retrieving an ImageInfoSpecific object from a block
driver.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -3322,6 +3322,15 @@ int bdrv_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) return drv->bdrv_get_info(bs, bdi); } +ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs) +{ + BlockDriver *drv = bs->drv; + if (drv && drv->bdrv_get_specific_info) { + return drv->bdrv_get_specific_info(bs); + } + return NULL; +} + int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf, int64_t pos, int size) { |