diff options
author | 2017-04-25 03:31:15 -0700 | |
---|---|---|
committer | 2017-05-22 06:48:08 +0000 | |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/include/ui/input.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/include/ui/input.h')
-rw-r--r-- | qemu/include/ui/input.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/qemu/include/ui/input.h b/qemu/include/ui/input.h deleted file mode 100644 index 102d8a334..000000000 --- a/qemu/include/ui/input.h +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef INPUT_H -#define INPUT_H - -#include "qapi-types.h" - -#define INPUT_EVENT_MASK_KEY (1<<INPUT_EVENT_KIND_KEY) -#define INPUT_EVENT_MASK_BTN (1<<INPUT_EVENT_KIND_BTN) -#define INPUT_EVENT_MASK_REL (1<<INPUT_EVENT_KIND_REL) -#define INPUT_EVENT_MASK_ABS (1<<INPUT_EVENT_KIND_ABS) - -#define INPUT_EVENT_ABS_SIZE 0x8000 - -typedef struct QemuInputHandler QemuInputHandler; -typedef struct QemuInputHandlerState QemuInputHandlerState; - -typedef void (*QemuInputHandlerEvent)(DeviceState *dev, QemuConsole *src, - InputEvent *evt); -typedef void (*QemuInputHandlerSync)(DeviceState *dev); - -struct QemuInputHandler { - const char *name; - uint32_t mask; - QemuInputHandlerEvent event; - QemuInputHandlerSync sync; -}; - -QemuInputHandlerState *qemu_input_handler_register(DeviceState *dev, - QemuInputHandler *handler); -void qemu_input_handler_activate(QemuInputHandlerState *s); -void qemu_input_handler_deactivate(QemuInputHandlerState *s); -void qemu_input_handler_unregister(QemuInputHandlerState *s); -void qemu_input_handler_bind(QemuInputHandlerState *s, - const char *device_id, int head, - Error **errp); -void qemu_input_event_send(QemuConsole *src, InputEvent *evt); -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); -void qemu_input_event_send_key_delay(uint32_t delay_ms); -int qemu_input_key_number_to_qcode(uint8_t nr); -int qemu_input_key_value_to_number(const KeyValue *value); -int qemu_input_key_value_to_qcode(const KeyValue *value); -int qemu_input_key_value_to_scancode(const KeyValue *value, bool down, - int *codes); - -InputEvent *qemu_input_event_new_btn(InputButton btn, bool down); -void qemu_input_queue_btn(QemuConsole *src, InputButton btn, bool down); -void qemu_input_update_buttons(QemuConsole *src, uint32_t *button_map, - uint32_t button_old, uint32_t button_new); - -bool qemu_input_is_absolute(void); -int qemu_input_scale_axis(int value, int size_in, int size_out); -InputEvent *qemu_input_event_new_move(InputEventKind kind, - InputAxis axis, int value); -void qemu_input_queue_rel(QemuConsole *src, InputAxis axis, int value); -void qemu_input_queue_abs(QemuConsole *src, InputAxis axis, - int value, int size); - -void qemu_input_check_mode_change(void); -void qemu_add_mouse_mode_change_notifier(Notifier *notify); -void qemu_remove_mouse_mode_change_notifier(Notifier *notify); - -int input_linux_init(void *opaque, QemuOpts *opts, Error **errp); - -#endif /* INPUT_H */ |