]> Git Repo - qemu.git/commitdiff
block: Make blk_get_attached_dev_id() public
authorKevin Wolf <[email protected]>
Tue, 11 Jul 2017 11:26:59 +0000 (13:26 +0200)
committerKevin Wolf <[email protected]>
Tue, 18 Jul 2017 13:14:35 +0000 (15:14 +0200)
Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: John Snow <[email protected]>
block/block-backend.c
include/sysemu/block-backend.h

index fe3542b3f8c26d84856d74dabe2f38932227756f..8171270b597590c9bb744fe22f5ecb96335ac219 100644 (file)
@@ -83,7 +83,6 @@ static const AIOCBInfo block_backend_aiocb_info = {
 
 static void drive_info_del(DriveInfo *dinfo);
 static BlockBackend *bdrv_first_blk(BlockDriverState *bs);
-static char *blk_get_attached_dev_id(BlockBackend *blk);
 
 /* All BlockBackends */
 static QTAILQ_HEAD(, BlockBackend) block_backends =
@@ -726,7 +725,7 @@ void *blk_get_attached_dev(BlockBackend *blk)
 
 /* Return the qdev ID, or if no ID is assigned the QOM path, of the block
  * device attached to the BlockBackend. */
-static char *blk_get_attached_dev_id(BlockBackend *blk)
+char *blk_get_attached_dev_id(BlockBackend *blk)
 {
     DeviceState *dev;
 
index d9ea0cdb0fdb4e8b26140f6ecf91d1011c738eda..fe47799a9de49addcc13170a5cd64fb2cac55ecf 100644 (file)
@@ -126,6 +126,7 @@ int blk_attach_dev(BlockBackend *blk, DeviceState *dev);
 void blk_attach_dev_legacy(BlockBackend *blk, void *dev);
 void blk_detach_dev(BlockBackend *blk, void *dev);
 void *blk_get_attached_dev(BlockBackend *blk);
+char *blk_get_attached_dev_id(BlockBackend *blk);
 BlockBackend *blk_by_dev(void *dev);
 BlockBackend *blk_by_qdev_id(const char *id, Error **errp);
 void blk_set_dev_ops(BlockBackend *blk, const BlockDevOps *ops, void *opaque);
This page took 0.032542 seconds and 4 git commands to generate.