diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-14 17:21:37 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-07-14 17:21:37 +0000 |
commit | 81d0912d2d221c41d649d2c36812afddf74634d2 (patch) | |
tree | 7f71f468768e292e60d042d37cf4a15f5bc96972 /block.c | |
parent | d1d9f42119b2eb10e86f062e9e62dfcec3e199b1 (diff) |
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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |