0a122b
From c2e580f1f3137d8517894ba6d5cd6d7f85682587 Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <c2e580f1f3137d8517894ba6d5cd6d7f85682587.1387298827.git.minovotn@redhat.com>
0a122b
In-Reply-To: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com>
0a122b
References: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com>
0a122b
From: "Michael S. Tsirkin" <mst@redhat.com>
0a122b
Date: Tue, 17 Dec 2013 15:17:13 +0100
0a122b
Subject: [PATCH 10/56] fw_cfg: move typedef to qemu/typedefs.h
0a122b
0a122b
RH-Author: Michael S. Tsirkin <mst@redhat.com>
0a122b
Message-id: <1387293161-4085-11-git-send-email-mst@redhat.com>
0a122b
Patchwork-id: 56315
0a122b
O-Subject: [PATCH qemu-kvm RHEL7.0 v2 10/57] fw_cfg: move typedef to qemu/typedefs.h
0a122b
Bugzilla: 1034876
0a122b
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
0a122b
RH-Acked-by: Marcel Apfelbaum <marcel.a@redhat.com>
0a122b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
0a122b
0a122b
Less header dependencies this way.
0a122b
0a122b
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
0a122b
(cherry picked from commit 45936c8b79012da4c8986c20af4afcc9cd14bb8e)
0a122b
---
0a122b
 include/hw/i386/pc.h      | 1 -
0a122b
 include/hw/nvram/fw_cfg.h | 2 +-
0a122b
 include/qemu/typedefs.h   | 1 +
0a122b
 3 files changed, 2 insertions(+), 2 deletions(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 include/hw/i386/pc.h      | 1 -
0a122b
 include/hw/nvram/fw_cfg.h | 2 +-
0a122b
 include/qemu/typedefs.h   | 1 +
0a122b
 3 files changed, 2 insertions(+), 2 deletions(-)
0a122b
0a122b
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
0a122b
index 4175c1b..2cf7baa 100644
0a122b
--- a/include/hw/i386/pc.h
0a122b
+++ b/include/hw/i386/pc.h
0a122b
@@ -9,7 +9,6 @@
0a122b
 #include "net/net.h"
0a122b
 #include "exec/memory.h"
0a122b
 #include "hw/i386/ioapic.h"
0a122b
-#include "hw/nvram/fw_cfg.h"
0a122b
 
0a122b
 /* PC-style peripherals (also used by other machines).  */
0a122b
 
0a122b
diff --git a/include/hw/nvram/fw_cfg.h b/include/hw/nvram/fw_cfg.h
0a122b
index 48a8aa4..f60dd67 100644
0a122b
--- a/include/hw/nvram/fw_cfg.h
0a122b
+++ b/include/hw/nvram/fw_cfg.h
0a122b
@@ -6,6 +6,7 @@
0a122b
 #include <stddef.h>
0a122b
 
0a122b
 #include "exec/hwaddr.h"
0a122b
+#include "qemu/typedefs.h"
0a122b
 #endif
0a122b
 
0a122b
 #define FW_CFG_SIGNATURE        0x00
0a122b
@@ -60,7 +61,6 @@ typedef struct FWCfgFiles {
0a122b
 
0a122b
 typedef void (*FWCfgCallback)(void *opaque, uint8_t *data);
0a122b
 
0a122b
-typedef struct FWCfgState FWCfgState;
0a122b
 void fw_cfg_add_bytes(FWCfgState *s, uint16_t key, void *data, size_t len);
0a122b
 void fw_cfg_add_string(FWCfgState *s, uint16_t key, const char *value);
0a122b
 void fw_cfg_add_i16(FWCfgState *s, uint16_t key, uint16_t value);
0a122b
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
0a122b
index 2e7d942..a332d88 100644
0a122b
--- a/include/qemu/typedefs.h
0a122b
+++ b/include/qemu/typedefs.h
0a122b
@@ -63,6 +63,7 @@ typedef struct EventNotifier EventNotifier;
0a122b
 typedef struct VirtIODevice VirtIODevice;
0a122b
 typedef struct QEMUSGList QEMUSGList;
0a122b
 typedef struct SHPCDevice SHPCDevice;
0a122b
+typedef struct FWCfgState FWCfgState;
0a122b
 typedef struct Range Range;
0a122b
 
0a122b
 #endif /* QEMU_TYPEDEFS_H */
0a122b
-- 
0a122b
1.7.11.7
0a122b