]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - include/hw/nmi.h
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / include / hw / nmi.h
index fe37ce3ad83368e9f34b979f7fe23b121586c7b5..47fc036e749dafa3f7133c9e67a4f7c4f225ae8e 100644 (file)
@@ -26,6 +26,7 @@
 
 #define TYPE_NMI "nmi"
 
+typedef struct NMIClass NMIClass;
 #define NMI_CLASS(klass) \
      OBJECT_CLASS_CHECK(NMIClass, (klass), TYPE_NMI)
 #define NMI_GET_CLASS(obj) \
 
 typedef struct NMIState NMIState;
 
-typedef struct NMIClass {
+struct NMIClass {
     InterfaceClass parent_class;
 
     void (*nmi_monitor_handler)(NMIState *n, int cpu_index, Error **errp);
-} NMIClass;
+};
 
 void nmi_monitor_handle(int cpu_index, Error **errp);