ui/console: Remove MouseTransformInfo from qemu/typedefs.h
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 14 Jan 2019 13:08:28 +0000 (14:08 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 22 Jan 2019 04:14:33 +0000 (05:14 +0100)
Header files requiring MouseTransformInfo already include "ui/console.h".

To clean "qemu/typedefs.h", move the declaration to "ui/console.h"
(removing the forward declaration).

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/hw/devices.h
include/qemu/typedefs.h
include/ui/console.h

index 0e27feb0c2684aadeffeb17adbc83bb802e92894..b5f1662225ce6cab2522e7fe5a0d66399a4eee01 100644 (file)
@@ -4,6 +4,7 @@
 /* Devices that have nowhere better to go.  */
 
 #include "hw/hw.h"
+#include "ui/console.h"
 
 /* smc91c111.c */
 void smc91c111_init(NICInfo *, uint32_t, qemu_irq);
index 3a57dfd98eb3360d49774e7d608a62e72158bc45..38ec1fd38faee81f24aa1d7fbbc755675a12a0de 100644 (file)
@@ -51,7 +51,6 @@ typedef struct MigrationIncomingState MigrationIncomingState;
 typedef struct MigrationState MigrationState;
 typedef struct Monitor Monitor;
 typedef struct MonitorDef MonitorDef;
-typedef struct MouseTransformInfo MouseTransformInfo;
 typedef struct MSIMessage MSIMessage;
 typedef struct NetClientState NetClientState;
 typedef struct NetFilterState NetFilterState;
index 0a190370ac73eed62c8e9e56486318a0a8c6cedb..aa9f9755447bcff5fc963d1a5c7535d85a1547bc 100644 (file)
@@ -65,13 +65,13 @@ void qemu_remove_led_event_handler(QEMUPutLEDEntry *entry);
 
 void kbd_put_ledstate(int ledstate);
 
-struct MouseTransformInfo {
+typedef struct MouseTransformInfo {
     /* Touchscreen resolution */
     int x;
     int y;
     /* Calibration values as used/generated by tslib */
     int a[7];
-};
+} MouseTransformInfo;
 
 void hmp_mouse_set(Monitor *mon, const QDict *qdict);