mirror of https://gitee.com/openkylin/qemu.git
ui: don't export qemu_input_event_new_key
All public code should use qemu_input_event_send_key* functions instead of creating an event directly. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 20170929101201.21039-7-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
af07e5ff02
commit
3ad35e7a9b
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue