aboutsummaryrefslogtreecommitdiff
path: root/block-parallels.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 22:00:29 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 22:00:29 +0000
commite60f469ca80e0b39b7cf85aef0d3b1ff32a67cba (patch)
treebcdf18a2fbd141e692dd2bd3175ee2ae0d11eb2c /block-parallels.c
parentaaedd1f9f302c0f5fd4554c10e85ae63603e3cb5 (diff)
Use C99 initializers for BlockDriver methods
Consistently use the C99 named initializer format for the BlockDriver methods to make the method table more readable and more easily extensible. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6768 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-parallels.c')
-rw-r--r--block-parallels.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/block-parallels.c b/block-parallels.c
index 8a8ec63da6..18c3d834e7 100644
--- a/block-parallels.c
+++ b/block-parallels.c
@@ -164,11 +164,10 @@ static void parallels_close(BlockDriverState *bs)
}
BlockDriver bdrv_parallels = {
- "parallels",
- sizeof(BDRVParallelsState),
- parallels_probe,
- parallels_open,
- parallels_read,
- NULL,
- parallels_close,
+ .format_name = "parallels",
+ .instance_size = sizeof(BDRVParallelsState),
+ .bdrv_probe = parallels_probe,
+ .bdrv_open = parallels_open,
+ .bdrv_read = parallels_read,
+ .bdrv_close = parallels_close,
};