]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - include/hw/arm/digic.h
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / include / hw / arm / digic.h
index 63785baaa87f2b042147511e625c61bfd612c8bc..f77833f6e324832e7bac22d2420e77ad8584550d 100644 (file)
 #include "cpu.h"
 #include "hw/timer/digic-timer.h"
 #include "hw/char/digic-uart.h"
+#include "qom/object.h"
 
 #define TYPE_DIGIC "digic"
 
+typedef struct DigicState DigicState;
 #define DIGIC(obj) OBJECT_CHECK(DigicState, (obj), TYPE_DIGIC)
 
 #define DIGIC4_NB_TIMERS 3
 
-typedef struct DigicState {
+struct DigicState {
     /*< private >*/
     DeviceState parent_obj;
     /*< public >*/
@@ -37,6 +39,6 @@ typedef struct DigicState {
 
     DigicTimerState timer[DIGIC4_NB_TIMERS];
     DigicUartState uart;
-} DigicState;
+};
 
 #endif /* HW_ARM_DIGIC_H */