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 | c5948bd7cdf43fc5f599bd7153ba28301fa763ee (patch) | |
tree | bcdf18a2fbd141e692dd2bd3175ee2ae0d11eb2c /block-qcow.c | |
parent | 6d7e8ce21cd146b117e97f3fc35ece7f62f61629 (diff) | |
download | qemu-c5948bd7cdf43fc5f599bd7153ba28301fa763ee.tar.gz qemu-c5948bd7cdf43fc5f599bd7153ba28301fa763ee.tar.bz2 qemu-c5948bd7cdf43fc5f599bd7153ba28301fa763ee.zip |
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-qcow.c')
-rw-r--r-- | block-qcow.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/block-qcow.c b/block-qcow.c index 91c53b1b8e..1fabc494dd 100644 --- a/block-qcow.c +++ b/block-qcow.c @@ -887,23 +887,20 @@ static int qcow_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) } BlockDriver bdrv_qcow = { - "qcow", - sizeof(BDRVQcowState), - qcow_probe, - qcow_open, - NULL, - NULL, - qcow_close, - qcow_create, - qcow_flush, - qcow_is_allocated, - qcow_set_key, - qcow_make_empty, - - .bdrv_aio_read = qcow_aio_read, - .bdrv_aio_write = qcow_aio_write, - .bdrv_aio_cancel = qcow_aio_cancel, - .aiocb_size = sizeof(QCowAIOCB), + .format_name = "qcow", + .instance_size = sizeof(BDRVQcowState), + .bdrv_probe = qcow_probe, + .bdrv_open = qcow_open, + .bdrv_close = qcow_close, + .bdrv_create = qcow_create, + .bdrv_flush = qcow_flush, + .bdrv_is_allocated = qcow_is_allocated, + .bdrv_set_key = qcow_set_key, + .bdrv_make_empty = qcow_make_empty, + .bdrv_aio_read = qcow_aio_read, + .bdrv_aio_write = qcow_aio_write, + .bdrv_aio_cancel = qcow_aio_cancel, + .aiocb_size = sizeof(QCowAIOCB), .bdrv_write_compressed = qcow_write_compressed, - .bdrv_get_info = qcow_get_info, + .bdrv_get_info = qcow_get_info, }; |