diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-09 17:03:42 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-14 16:13:41 -0500 |
commit | 5efa9d5a8b18841c9c62208a494d7f519238979a (patch) | |
tree | c3d65b0b6bd54ca614e4e7e4b8eb295117ba9d78 /block.h | |
parent | 0bfe3ca51ebddbf2cc099fa34f359bd1ac4f65e6 (diff) | |
download | qemu-5efa9d5a8b18841c9c62208a494d7f519238979a.zip qemu-5efa9d5a8b18841c9c62208a494d7f519238979a.tar.gz qemu-5efa9d5a8b18841c9c62208a494d7f519238979a.tar.bz2 |
Convert block infrastructure to use new module init functionality
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -7,20 +7,6 @@ /* block.c */ typedef struct BlockDriver BlockDriver; -extern BlockDriver bdrv_raw; -extern BlockDriver bdrv_host_device; -extern BlockDriver bdrv_cow; -extern BlockDriver bdrv_qcow; -extern BlockDriver bdrv_vmdk; -extern BlockDriver bdrv_cloop; -extern BlockDriver bdrv_dmg; -extern BlockDriver bdrv_bochs; -extern BlockDriver bdrv_vpc; -extern BlockDriver bdrv_vvfat; -extern BlockDriver bdrv_qcow2; -extern BlockDriver bdrv_parallels; -extern BlockDriver bdrv_nbd; - typedef struct BlockDriverInfo { /* in bytes, 0 if irrelevant */ int cluster_size; @@ -87,6 +73,8 @@ int64_t bdrv_getlength(BlockDriverState *bs); void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr); void bdrv_guess_geometry(BlockDriverState *bs, int *pcyls, int *pheads, int *psecs); int bdrv_commit(BlockDriverState *bs); +void bdrv_register(BlockDriver *bdrv); + /* async block I/O */ typedef struct BlockDriverAIOCB BlockDriverAIOCB; typedef void BlockDriverCompletionFunc(void *opaque, int ret); |