summaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-08-24 15:22:24 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-08-24 15:22:24 +0000
commit2446333cd5b5c985f6517dee7004e542ecacd21c (patch)
tree9646889006f9944dc5d530b73d35a6c3c30c239b /qemu-common.h
parente945fb76271eb4c8ceed6bff417a0b98744e1af3 (diff)
downloadqemu-2446333cd5b5c985f6517dee7004e542ecacd21c.tar.gz
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 'qemu-common.h')
-rw-r--r--qemu-common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h
index 3fb2f0b375..dfd3dc08a2 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -201,6 +201,7 @@ typedef struct NICInfo NICInfo;
typedef struct HCIInfo HCIInfo;
typedef struct AudioState AudioState;
typedef struct BlockDriverState BlockDriverState;
+typedef struct DriveInfo DriveInfo;
typedef struct DisplayState DisplayState;
typedef struct DisplayChangeListener DisplayChangeListener;
typedef struct DisplaySurface DisplaySurface;
@@ -231,6 +232,12 @@ typedef struct VirtIODevice VirtIODevice;
typedef uint64_t pcibus_t;
+typedef enum {
+ IF_NONE,
+ IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN,
+ IF_COUNT
+} BlockInterfaceType;
+
void cpu_exec_init_all(unsigned long tb_size);
/* CPU save/load. */