hw/input/ps2: Remove PS2State from "qemu/typedefs.h"
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 11 Jan 2019 14:08:43 +0000 (15:08 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 22 Jan 2019 04:14:32 +0000 (05:14 +0100)
PS2State is only used in "hw/input/ps2.h", there is no
need to expose it via "qemu/typedefs.h".

To clean "qemu/typedefs.h", move the forward declaration
to "hw/input/ps2.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/hw/input/ps2.h
include/qemu/typedefs.h

index 213aa16aa34a81399584003fdaf5d53a96cb2c6b..b60455d4f68b4bd4fe2e2807db5854346ab3a4df 100644 (file)
@@ -31,6 +31,8 @@
 #define PS2_MOUSE_BUTTON_SIDE   0x08
 #define PS2_MOUSE_BUTTON_EXTRA  0x10
 
+typedef struct PS2State PS2State;
+
 /* ps2.c */
 void *ps2_kbd_init(void (*update_irq)(void *, int), void *update_arg);
 void *ps2_mouse_init(void (*update_irq)(void *, int), void *update_arg);
index 741935fe3605d60637d514091ec378f2e03d66a8..28a8b9e7c2242ba1ed669add85e64b6eebd21401 100644 (file)
@@ -83,7 +83,6 @@ typedef struct PixelFormat PixelFormat;
 typedef struct PostcopyDiscardState PostcopyDiscardState;
 typedef struct Property Property;
 typedef struct PropertyInfo PropertyInfo;
-typedef struct PS2State PS2State;
 typedef struct QBool QBool;
 typedef struct QDict QDict;
 typedef struct QEMUBH QEMUBH;