qemu-vte: fix build, use workspace deps
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
67b334e5bb
commit
abca0e48d5
|
@ -7,8 +7,8 @@ edition = "2018"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
pretty_env_logger = "0.4"
|
pretty_env_logger = "0.4"
|
||||||
once_cell = "1.5"
|
once_cell = "1.5"
|
||||||
zbus = { version = "3.0" }
|
zbus.workspace = true
|
||||||
qemu-display = { path = "../qemu-display" }
|
qemu-display.workspace = true
|
||||||
futures = "0.3.13"
|
futures = "0.3.13"
|
||||||
|
|
||||||
[dependencies.vte]
|
[dependencies.vte]
|
||||||
|
|
|
@ -37,7 +37,7 @@ fn main() {
|
||||||
c.proxy.name().await.expect("Chardev not found");
|
c.proxy.name().await.expect("Chardev not found");
|
||||||
|
|
||||||
let (p0, p1) = UnixStream::pair().unwrap();
|
let (p0, p1) = UnixStream::pair().unwrap();
|
||||||
if c.proxy.register(p1.as_raw_fd().into()).await.is_ok() {
|
if c.proxy.register((&p1).into()).await.is_ok() {
|
||||||
let ostream = unsafe { gio::UnixOutputStream::with_fd(p0.as_raw_fd()) };
|
let ostream = unsafe { gio::UnixOutputStream::with_fd(p0.as_raw_fd()) };
|
||||||
let istream = unsafe { gio::UnixInputStream::take_fd(p0) }
|
let istream = unsafe { gio::UnixInputStream::take_fd(p0) }
|
||||||
.dynamic_cast::<gio::PollableInputStream>()
|
.dynamic_cast::<gio::PollableInputStream>()
|
||||||
|
|
Loading…
Reference in New Issue