]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/ipmi/pci_ipmi_kcs.c
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / hw / ipmi / pci_ipmi_kcs.c
index 99f46152f48cd9aaee6fc46b90b5680da75dea0b..e4a1603d4e84a4f116ffc9affbb6a5f262de96ef 100644 (file)
 #include "qapi/error.h"
 #include "hw/ipmi/ipmi_kcs.h"
 #include "hw/pci/pci.h"
+#include "qom/object.h"
 
 #define TYPE_PCI_IPMI_KCS "pci-ipmi-kcs"
+typedef struct PCIIPMIKCSDevice PCIIPMIKCSDevice;
 #define PCI_IPMI_KCS(obj) OBJECT_CHECK(PCIIPMIKCSDevice, (obj), \
                                        TYPE_PCI_IPMI_KCS)
 
-typedef struct PCIIPMIKCSDevice {
+struct PCIIPMIKCSDevice {
     PCIDevice dev;
     IPMIKCS kcs;
     bool irq_enabled;
     uint32_t uuid;
-} PCIIPMIKCSDevice;
+};
 
 static void pci_ipmi_raise_irq(IPMIKCS *ik)
 {