diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-24 12:08:37 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-24 11:50:18 -0500 |
commit | 72711efb58c13e28c89813490120b32947a2d719 (patch) | |
tree | 9473e824dfff783dd042d58420007908672af8ac /include/ui | |
parent | a3ac6b53d4e8ed6fa2ca1af87c68a8b7d5535220 (diff) |
input: make QEMUPutLEDEntry + QEMUPutMouseEntry private
There is no need for anybody outside ui/input.c to access the
struct elements. Move the definitions, leaving only the typedefs
in the header files.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1366798118-3248-2-git-send-email-kraxel@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/console.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index e591d742d4..5cc5d0cee2 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -28,23 +28,8 @@ typedef void QEMUPutKBDEvent(void *opaque, int keycode); typedef void QEMUPutLEDEvent(void *opaque, int ledstate); typedef void QEMUPutMouseEvent(void *opaque, int dx, int dy, int dz, int buttons_state); -typedef struct QEMUPutMouseEntry { - QEMUPutMouseEvent *qemu_put_mouse_event; - void *qemu_put_mouse_event_opaque; - int qemu_put_mouse_event_absolute; - char *qemu_put_mouse_event_name; - - int index; - - /* used internally by qemu for handling mice */ - QTAILQ_ENTRY(QEMUPutMouseEntry) node; -} QEMUPutMouseEntry; - -typedef struct QEMUPutLEDEntry { - QEMUPutLEDEvent *put_led; - void *opaque; - QTAILQ_ENTRY(QEMUPutLEDEntry) next; -} QEMUPutLEDEntry; +typedef struct QEMUPutMouseEntry QEMUPutMouseEntry; +typedef struct QEMUPutLEDEntry QEMUPutLEDEntry; void qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque); void qemu_remove_kbd_event_handler(void); |