diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-08-24 15:22:24 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-08-24 15:22:24 +0000 |
commit | 15a984eebfe1c07b2a13e9e8f948774028c265c9 (patch) | |
tree | 9646889006f9944dc5d530b73d35a6c3c30c239b /blockdev.h | |
parent | 160a181c147f0ed1ab2de364d7d4c57cf0c92453 (diff) | |
download | qemu-15a984eebfe1c07b2a13e9e8f948774028c265c9.tar.gz qemu-15a984eebfe1c07b2a13e9e8f948774028c265c9.tar.bz2 qemu-15a984eebfe1c07b2a13e9e8f948774028c265c9.zip |
Rearrange block headers
Changing block.h or blockdev.h resulted in recompiling most objects.
Move DriveInfo typedef and BlockInterfaceType enum definitions
to qemu-common.h and rearrange blockdev.h use to decrease churn.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'blockdev.h')
-rw-r--r-- | blockdev.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/blockdev.h b/blockdev.h index 37f3a017ea..89dcd9a88e 100644 --- a/blockdev.h +++ b/blockdev.h @@ -16,15 +16,9 @@ void blockdev_mark_auto_del(BlockDriverState *bs); void blockdev_auto_del(BlockDriverState *bs); -typedef enum { - IF_NONE, - IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN, - IF_COUNT -} BlockInterfaceType; - #define BLOCK_SERIAL_STRLEN 20 -typedef struct DriveInfo { +struct DriveInfo { BlockDriverState *bdrv; char *id; const char *devaddr; @@ -35,7 +29,7 @@ typedef struct DriveInfo { QemuOpts *opts; char serial[BLOCK_SERIAL_STRLEN + 1]; QTAILQ_ENTRY(DriveInfo) next; -} DriveInfo; +}; #define MAX_IDE_DEVS 2 #define MAX_SCSI_DEVS 7 |