fw_cfg: move typedef to qemu/typedefs.h
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 13 May 2013 13:27:06 +0000 (16:27 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 2 Jun 2013 15:14:14 +0000 (18:14 +0300)
Less header dependencies this way.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/i386/pc.h
include/hw/nvram/fw_cfg.h
include/qemu/typedefs.h

index fa3bf24c78178dbd7b1692deae6a7e669591c2d0..b4c8a74ef71d9ca578268850ff51ce443a566d0d 100644 (file)
@@ -8,7 +8,6 @@
 #include "hw/block/fdc.h"
 #include "net/net.h"
 #include "hw/i386/ioapic.h"
-#include "hw/nvram/fw_cfg.h"
 
 /* PC-style peripherals (also used by other machines).  */
 
index 3e4a3347e8a0fe122ca65e3f1b9477f901bcffc6..f37714ee9b17d6a62ee6b59f2889f51a9dffef6c 100644 (file)
@@ -6,6 +6,7 @@
 #include <stddef.h>
 
 #include "exec/hwaddr.h"
+#include "qemu/typedefs.h"
 #endif
 
 #define FW_CFG_SIGNATURE        0x00
@@ -60,7 +61,6 @@ typedef struct FWCfgFiles {
 
 typedef void (*FWCfgCallback)(void *opaque, uint8_t *data);
 
-typedef struct FWCfgState FWCfgState;
 void fw_cfg_add_bytes(FWCfgState *s, uint16_t key, void *data, size_t len);
 void fw_cfg_add_string(FWCfgState *s, uint16_t key, const char *value);
 void fw_cfg_add_i16(FWCfgState *s, uint16_t key, uint16_t value);
index 93aae81a8243d216ce1653786b52b8fd6b6f4fd0..afe4ec76e19a28bab7caa2696384836f3cc8ed53 100644 (file)
@@ -61,5 +61,6 @@ typedef struct EventNotifier EventNotifier;
 typedef struct VirtIODevice VirtIODevice;
 typedef struct QEMUSGList QEMUSGList;
 typedef struct SHPCDevice SHPCDevice;
+typedef struct FWCfgState FWCfgState;
 
 #endif /* QEMU_TYPEDEFS_H */