[PATCHv4 4/6] qemu/net: move typedef to qemu-common.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Move typedef VLANClientState to qemu-common.h so that users
can use forward-declared type without pulling in net.h

Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
---
 net.h         |    2 --
 qemu-common.h |    1 +
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net.h b/net.h
index 7246d16..00485e2 100644
--- a/net.h
+++ b/net.h
@@ -8,8 +8,6 @@
 
 /* VLANs support */
 
-typedef struct VLANClientState VLANClientState;
-
 typedef int (NetCanReceive)(VLANClientState *);
 typedef ssize_t (NetReceive)(VLANClientState *, const uint8_t *, size_t);
 typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int);
diff --git a/qemu-common.h b/qemu-common.h
index 875010b..704796e 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -193,6 +193,7 @@ typedef struct uWireSlave uWireSlave;
 typedef struct I2SCodec I2SCodec;
 typedef struct DeviceState DeviceState;
 typedef struct SSIBus SSIBus;
+typedef struct VLANClientState VLANClientState;
 
 /* CPU save/load.  */
 void cpu_save(QEMUFile *f, void *opaque);
-- 
1.6.5.2.143.g8cc62

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux