From 2f399b0aad7d16ce53d15a79b0b2c9315ac70e11 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 2 Jun 2010 18:55:20 +0200 Subject: block: New bdrv_next() This is a more flexible alternative to bdrv_iterate(). Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- block.h | 1 + 1 file changed, 1 insertion(+) (limited to 'block.h') diff --git a/block.h b/block.h index 1f69cbd7c7..9df9b38f15 100644 --- a/block.h +++ b/block.h @@ -168,6 +168,7 @@ void bdrv_set_change_cb(BlockDriverState *bs, void (*change_cb)(void *opaque), void *opaque); void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size); BlockDriverState *bdrv_find(const char *name); +BlockDriverState *bdrv_next(BlockDriverState *bs); void bdrv_iterate(void (*it)(void *opaque, BlockDriverState *bs), void *opaque); int bdrv_is_encrypted(BlockDriverState *bs); -- cgit v1.2.3