aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-14 17:21:37 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-14 17:21:37 +0000
commit81d0912d2d221c41d649d2c36812afddf74634d2 (patch)
tree7f71f468768e292e60d042d37cf4a15f5bc96972 /block.c
parentd1d9f42119b2eb10e86f062e9e62dfcec3e199b1 (diff)
downloadqemu-81d0912d2d221c41d649d2c36812afddf74634d2.zip
qemu-81d0912d2d221c41d649d2c36812afddf74634d2.tar.gz
qemu-81d0912d2d221c41d649d2c36812afddf74634d2.tar.bz2
completion support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1020 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r--block.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/block.c b/block.c
index e71adda..8946564 100644
--- a/block.c
+++ b/block.c
@@ -470,6 +470,15 @@ BlockDriverState *bdrv_find(const char *name)
return NULL;
}
+void bdrv_iterate(void (*it)(void *opaque, const char *name), void *opaque)
+{
+ BlockDriverState *bs;
+
+ for (bs = bdrv_first; bs != NULL; bs = bs->next) {
+ it(opaque, bs->device_name);
+ }
+}
+
void bdrv_info(void)
{
BlockDriverState *bs;