]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/pci-bridge/dec.c
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / hw / pci-bridge / dec.c
index 677a310b9649dceefc49289cafa08745c108d398..b35866d8d1fcc82b85b899464ed301f46c0f39df 100644 (file)
 #include "hw/pci/pci_host.h"
 #include "hw/pci/pci_bridge.h"
 #include "hw/pci/pci_bus.h"
+#include "qom/object.h"
 
+typedef struct DECState DECState;
 #define DEC_21154(obj) OBJECT_CHECK(DECState, (obj), TYPE_DEC_21154)
 
-typedef struct DECState {
+struct DECState {
     PCIHostState parent_obj;
-} DECState;
+};
 
 static int dec_map_irq(PCIDevice *pci_dev, int irq_num)
 {