summary refs log tree commit diff
path: root/src/wl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wl.rs')
-rw-r--r--src/wl.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/wl.rs b/src/wl.rs
index be473d4..1e3b0a3 100644
--- a/src/wl.rs
+++ b/src/wl.rs
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: BSD-3-Clause
 
-use devices::virtio::{wl2, InterruptProxy, InterruptProxyEvent, SingleFd};
+use devices::virtio::{Activate, InterruptProxy, InterruptProxyEvent, VirtioDevice, Wl};
 use msg_socket::{MsgReceiver, MsgSocket};
 use std::collections::BTreeMap;
 use std::fs::remove_file;
@@ -12,7 +12,7 @@ pub use aarch64::{arch_memory_regions, MemoryParams};
 #[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
 pub use x86_64::{arch_memory_regions, MemoryParams};
 
-type Socket = MsgSocket<(), SingleFd>;
+type Socket = MsgSocket<(), Activate>;
 
 fn main() {
     eprintln!("hello world");
@@ -32,20 +32,18 @@ fn main() {
 
     loop {
         match msg_socket.recv() {
-            Ok(SingleFd {
+            Ok(Activate {
                 shm,
                 interrupt,
                 interrupt_resample_evt,
                 in_queue,
                 out_queue,
                 vm_socket,
-                use_transition_flags,
                 in_queue_evt,
                 out_queue_evt,
-                kill_evt,
             }) => {
                 if wl.is_some() {
-                    panic!("Received SingleFd twice");
+                    panic!("Received Activate twice");
                 }
 
                 let shm = shm.owned();
@@ -64,9 +62,7 @@ fn main() {
                 let mut wayland_paths = BTreeMap::new();
                 wayland_paths.insert("".into(), "/run/user/1000/wayland-0".into());
 
-                use devices::virtio::VirtioDevice;
-
-                let mut wl_ = wl2::Wl::new(wayland_paths, vm_socket, None).unwrap();
+                let mut wl_ = Wl::new(wayland_paths, vm_socket, None).unwrap();
 
                 println!("constructed Wl");