block: Make blk_all_next() public
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
46eade7be8
commit
a429b9b5f4
@ -342,7 +342,7 @@ void blk_unref(BlockBackend *blk)
|
|||||||
* Behaves similarly to blk_next() but iterates over all BlockBackends, even the
|
* Behaves similarly to blk_next() but iterates over all BlockBackends, even the
|
||||||
* ones which are hidden (i.e. are not referenced by the monitor).
|
* ones which are hidden (i.e. are not referenced by the monitor).
|
||||||
*/
|
*/
|
||||||
static BlockBackend *blk_all_next(BlockBackend *blk)
|
BlockBackend *blk_all_next(BlockBackend *blk)
|
||||||
{
|
{
|
||||||
return blk ? QTAILQ_NEXT(blk, link)
|
return blk ? QTAILQ_NEXT(blk, link)
|
||||||
: QTAILQ_FIRST(&block_backends);
|
: QTAILQ_FIRST(&block_backends);
|
||||||
|
@ -100,6 +100,7 @@ void blk_remove_all_bs(void);
|
|||||||
const char *blk_name(const BlockBackend *blk);
|
const char *blk_name(const BlockBackend *blk);
|
||||||
BlockBackend *blk_by_name(const char *name);
|
BlockBackend *blk_by_name(const char *name);
|
||||||
BlockBackend *blk_next(BlockBackend *blk);
|
BlockBackend *blk_next(BlockBackend *blk);
|
||||||
|
BlockBackend *blk_all_next(BlockBackend *blk);
|
||||||
bool monitor_add_blk(BlockBackend *blk, const char *name, Error **errp);
|
bool monitor_add_blk(BlockBackend *blk, const char *name, Error **errp);
|
||||||
void monitor_remove_blk(BlockBackend *blk);
|
void monitor_remove_blk(BlockBackend *blk);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user