[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/6] ui: don't export qemu_input_event_new_key
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 6/6] ui: don't export qemu_input_event_new_key |
Date: |
Thu, 5 Oct 2017 12:01:06 +0200 |
From: "Daniel P. Berrange" <address@hidden>
All public code should use qemu_input_event_send_key* functions
instead of creating an event directly.
Signed-off-by: Daniel P. Berrange <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
include/ui/input.h | 1 -
ui/input.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/ui/input.h b/include/ui/input.h
index 479cc46cfc..f8cee43f65 100644
--- a/include/ui/input.h
+++ b/include/ui/input.h
@@ -38,7 +38,6 @@ void qemu_input_event_send_impl(QemuConsole *src, InputEvent
*evt);
void qemu_input_event_sync(void);
void qemu_input_event_sync_impl(void);
-InputEvent *qemu_input_event_new_key(KeyValue *key, bool down);
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down);
void qemu_input_event_send_key_number(QemuConsole *src, int num, bool down);
void qemu_input_event_send_key_qcode(QemuConsole *src, QKeyCode q, bool down);
diff --git a/ui/input.c b/ui/input.c
index 4b241aa823..290b47354a 100644
--- a/ui/input.c
+++ b/ui/input.c
@@ -386,7 +386,7 @@ void qemu_input_event_sync(void)
replay_input_sync_event();
}
-InputEvent *qemu_input_event_new_key(KeyValue *key, bool down)
+static InputEvent *qemu_input_event_new_key(KeyValue *key, bool down)
{
InputEvent *evt = g_new0(InputEvent, 1);
evt->u.key.data = g_new0(InputKeyEvent, 1);
--
2.9.3
- [Qemu-devel] [PULL 0/6] Ui 20171005 patches, Gerd Hoffmann, 2017/10/05
- [Qemu-devel] [PULL 4/6] ui: convert common input code to keycodemapdb, Gerd Hoffmann, 2017/10/05
- [Qemu-devel] [PULL 3/6] ui: add keycodemapdb repository as a GIT submodule, Gerd Hoffmann, 2017/10/05
- [Qemu-devel] [PULL 5/6] ui: convert key events to QKeyCodes immediately, Gerd Hoffmann, 2017/10/05
- [Qemu-devel] [PULL 2/6] docker: don't rely on submodules existing in the main checkout, Gerd Hoffmann, 2017/10/05
- [Qemu-devel] [PULL 6/6] ui: don't export qemu_input_event_new_key,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 1/6] build: automatically handle GIT submodule checkout for dtc, Gerd Hoffmann, 2017/10/05
- Re: [Qemu-devel] [PULL 0/6] Ui 20171005 patches, no-reply, 2017/10/05
- Re: [Qemu-devel] [PULL 0/6] Ui 20171005 patches, Peter Maydell, 2017/10/05