commit | 81d0912d2d221c41d649d2c36812afddf74634d2 | [log] [tgz] |
---|---|---|
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | Wed Jul 14 17:21:37 2004 +0000 |
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | Wed Jul 14 17:21:37 2004 +0000 |
tree | 7f71f468768e292e60d042d37cf4a15f5bc96972 | |
parent | d1d9f42119b2eb10e86f062e9e62dfcec3e199b1 [diff] [blame] |
completion support git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1020 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/block.c b/block.c index e71adda..8946564 100644 --- a/block.c +++ b/block.c
@@ -470,6 +470,15 @@ 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;