diff options
author | Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> | 2015-09-17 19:25:24 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-11-06 10:16:03 +0100 |
commit | ee312992a323530ea2cda8680f3a34746c72db8f (patch) | |
tree | 46353dc8d69e2c593b7f1695a93ddb35e974584e /include | |
parent | 4c27b859722089e0270fd4f41b4b3c63b6647439 (diff) | |
download | qemu-ee312992a323530ea2cda8680f3a34746c72db8f.zip qemu-ee312992a323530ea2cda8680f3a34746c72db8f.tar.gz qemu-ee312992a323530ea2cda8680f3a34746c72db8f.tar.bz2 |
replay: recording of the user input
This records user input (keyboard and mouse events) in record mode and replays
these input events in replay mode.
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20150917162524.8676.11696.stgit@PASHA-ISP.def.inno>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/replay.h | 4 | ||||
-rw-r--r-- | include/ui/input.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h index 3b27f12..abb4688 100644 --- a/include/sysemu/replay.h +++ b/include/sysemu/replay.h @@ -112,5 +112,9 @@ void replay_disable_events(void); bool replay_events_enabled(void); /*! Adds bottom half event to the queue */ void replay_bh_schedule_event(QEMUBH *bh); +/*! Adds input event to the queue */ +void replay_input_event(QemuConsole *src, InputEvent *evt); +/*! Adds input sync event to the queue */ +void replay_input_sync_event(void); #endif diff --git a/include/ui/input.h b/include/ui/input.h index 5d5ac00..d06a12d 100644 --- a/include/ui/input.h +++ b/include/ui/input.h @@ -33,7 +33,9 @@ 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); |