summary refs log tree commit diff
path: root/gpu_display/src/lib.rs
diff options
context:
space:
mode:
authorZach Reizner <zachr@google.com>2019-11-22 17:19:38 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-26 21:05:44 +0000
commit6f8823abb55e2d9f65cf7abe5635c59280fcf172 (patch)
treed33aabb647b25cd2181299e1c6754520e8ebbfe6 /gpu_display/src/lib.rs
parente3f1271842625872b06da54a1f4de03b1dba014a (diff)
downloadcrosvm-6f8823abb55e2d9f65cf7abe5635c59280fcf172.tar
crosvm-6f8823abb55e2d9f65cf7abe5635c59280fcf172.tar.gz
crosvm-6f8823abb55e2d9f65cf7abe5635c59280fcf172.tar.bz2
crosvm-6f8823abb55e2d9f65cf7abe5635c59280fcf172.tar.lz
crosvm-6f8823abb55e2d9f65cf7abe5635c59280fcf172.tar.xz
crosvm-6f8823abb55e2d9f65cf7abe5635c59280fcf172.tar.zst
crosvm-6f8823abb55e2d9f65cf7abe5635c59280fcf172.zip
gpu_display: add EventDevice to bridge gpu_display to a virtual input device
The EventDevice is a data structure that allows a generic gpu display to
send and receive input events in evdev's format to a generic input
device, such as virtio-input.

BUG=chromium:1023975
TEST=None

Change-Id: Ic663cc8c7a3031aee929e09620c5430c27a25190
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1930406
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Noah Gold <nkgold@google.com>
Tested-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Diffstat (limited to 'gpu_display/src/lib.rs')
-rw-r--r--gpu_display/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu_display/src/lib.rs b/gpu_display/src/lib.rs
index 3067c0e..5c243d6 100644
--- a/gpu_display/src/lib.rs
+++ b/gpu_display/src/lib.rs
@@ -11,10 +11,13 @@ use std::path::Path;
 use data_model::VolatileSlice;
 use sys_util::Error as SysError;
 
+mod event_device;
 mod gpu_display_wl;
 #[cfg(feature = "x")]
 mod gpu_display_x;
 
+pub use event_device::{EventDevice, EventDeviceKind, EventEncoded};
+
 /// An error generated by `GpuDisplay`.
 #[derive(Debug)]
 pub enum GpuDisplayError {