mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2025-03-07 15:25:04 +00:00
qemu-display: add Interfaces to ConsoleListener
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
5ab24ab8a8
commit
e642e14d5a
@ -151,6 +151,8 @@ pub trait ConsoleListenerHandler: 'static + Send + Sync {
|
|||||||
async fn cursor_define(&mut self, cursor: Cursor);
|
async fn cursor_define(&mut self, cursor: Cursor);
|
||||||
|
|
||||||
fn disconnected(&mut self);
|
fn disconnected(&mut self);
|
||||||
|
|
||||||
|
fn interfaces(&self) -> Vec<String>;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@ -289,6 +291,11 @@ impl<H: ConsoleListenerHandler> ConsoleListener<H> {
|
|||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[dbus_interface(property)]
|
||||||
|
fn interfaces(&self) -> Vec<String> {
|
||||||
|
self.handler.interfaces()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<H: ConsoleListenerHandler> ConsoleListener<H> {
|
impl<H: ConsoleListenerHandler> ConsoleListener<H> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user