diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-07 22:00:29 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-07 22:00:29 +0000 |
commit | e60f469ca80e0b39b7cf85aef0d3b1ff32a67cba (patch) | |
tree | bcdf18a2fbd141e692dd2bd3175ee2ae0d11eb2c /block-raw-win32.c | |
parent | aaedd1f9f302c0f5fd4554c10e85ae63603e3cb5 (diff) | |
download | qemu-e60f469ca80e0b39b7cf85aef0d3b1ff32a67cba.zip qemu-e60f469ca80e0b39b7cf85aef0d3b1ff32a67cba.tar.gz qemu-e60f469ca80e0b39b7cf85aef0d3b1ff32a67cba.tar.bz2 |
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-raw-win32.c')
-rw-r--r-- | block-raw-win32.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/block-raw-win32.c b/block-raw-win32.c index 892f2d1..19fa80d 100644 --- a/block-raw-win32.c +++ b/block-raw-win32.c @@ -495,23 +495,19 @@ static int raw_set_locked(BlockDriverState *bs, int locked) #endif BlockDriver bdrv_host_device = { - "host_device", - sizeof(BDRVRawState), - NULL, /* no probe for protocols */ - hdev_open, - NULL, - NULL, - raw_close, - NULL, - raw_flush, + .format_name = "host_device", + .instance_size = sizeof(BDRVRawState), + .bdrv_open = hdev_open, + .bdrv_close = raw_close, + .bdrv_flush = raw_flush, #ifdef WIN32_AIO - .bdrv_aio_read = raw_aio_read, - .bdrv_aio_write = raw_aio_write, - .bdrv_aio_cancel = raw_aio_cancel, - .aiocb_size = sizeof(RawAIOCB); + .bdrv_aio_read = raw_aio_read, + .bdrv_aio_write = raw_aio_write, + .bdrv_aio_cancel = raw_aio_cancel, + .aiocb_size = sizeof(RawAIOCB); #endif - .bdrv_pread = raw_pread, - .bdrv_pwrite = raw_pwrite, - .bdrv_getlength = raw_getlength, + .bdrv_pread = raw_pread, + .bdrv_pwrite = raw_pwrite, + .bdrv_getlength = raw_getlength, }; |