aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-01-11 15:08:43 +0100
committerThomas Huth <thuth@redhat.com>2019-01-22 05:14:32 +0100
commitfa9414e9694ebec033dd775bbb3b6ddf468f66c3 (patch)
tree59d180031e9b19d91fb2d6bf6e0c2931810cedf7 /include/hw
parent8a547c8dc84d82efb27b49165ca6f6fed24a9a67 (diff)
downloadqemu-fa9414e9694ebec033dd775bbb3b6ddf468f66c3.zip
qemu-fa9414e9694ebec033dd775bbb3b6ddf468f66c3.tar.gz
qemu-fa9414e9694ebec033dd775bbb3b6ddf468f66c3.tar.bz2
hw/input/ps2: Remove PS2State from "qemu/typedefs.h"
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>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/input/ps2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/input/ps2.h b/include/hw/input/ps2.h
index 213aa16..b60455d 100644
--- a/include/hw/input/ps2.h
+++ b/include/hw/input/ps2.h
@@ -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);