fw_cfg: move typedef to qemu/typedefs.h

Less header dependencies this way.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Michael S. Tsirkin 2013-05-13 16:27:06 +03:00
parent a88b362c6f
commit 45936c8b79
3 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,6 @@
#include "hw/block/fdc.h" #include "hw/block/fdc.h"
#include "net/net.h" #include "net/net.h"
#include "hw/i386/ioapic.h" #include "hw/i386/ioapic.h"
#include "hw/nvram/fw_cfg.h"
/* PC-style peripherals (also used by other machines). */ /* PC-style peripherals (also used by other machines). */

View File

@ -6,6 +6,7 @@
#include <stddef.h> #include <stddef.h>
#include "exec/hwaddr.h" #include "exec/hwaddr.h"
#include "qemu/typedefs.h"
#endif #endif
#define FW_CFG_SIGNATURE 0x00 #define FW_CFG_SIGNATURE 0x00
@ -60,7 +61,6 @@ typedef struct FWCfgFiles {
typedef void (*FWCfgCallback)(void *opaque, uint8_t *data); 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_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_string(FWCfgState *s, uint16_t key, const char *value);
void fw_cfg_add_i16(FWCfgState *s, uint16_t key, uint16_t value); void fw_cfg_add_i16(FWCfgState *s, uint16_t key, uint16_t value);

View File

@ -61,5 +61,6 @@ typedef struct EventNotifier EventNotifier;
typedef struct VirtIODevice VirtIODevice; typedef struct VirtIODevice VirtIODevice;
typedef struct QEMUSGList QEMUSGList; typedef struct QEMUSGList QEMUSGList;
typedef struct SHPCDevice SHPCDevice; typedef struct SHPCDevice SHPCDevice;
typedef struct FWCfgState FWCfgState;
#endif /* QEMU_TYPEDEFS_H */ #endif /* QEMU_TYPEDEFS_H */