qemu-rdw: use the shared library

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2021-11-02 17:02:50 +04:00
parent 8c5fa2a4f9
commit cbe0cf891c
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ once_cell = "1.5"
zbus = { version = "2.0.0-beta.7" }
qemu-display = { path = "../qemu-display" }
keycodemap = { path = "../keycodemap" }
rdw = { package = "rdw4", version = "0.1.0" }
rdw = { package = "rdw4", version = "0.1.0", features = ["bindings"] }
futures-util = "0.3.13"
futures = "0.3.13"
async-trait = "0.1.48"

View File

@ -13,7 +13,7 @@ mod imp {
#[repr(C)]
pub struct RdwDisplayQemuClass {
pub parent_class: rdw::imp::RdwDisplayClass,
pub parent_class: rdw::RdwDisplayClass,
}
unsafe impl ClassStruct for RdwDisplayQemuClass {
@ -22,7 +22,7 @@ mod imp {
#[repr(C)]
pub struct RdwDisplayQemu {
parent: rdw::imp::RdwDisplay,
parent: rdw::RdwDisplay,
}
impl std::fmt::Debug for RdwDisplayQemu {
@ -160,7 +160,7 @@ mod imp {
}
ScanoutDMABUF(s) => {
widget.set_display_size(Some((s.width as _, s.height as _)));
widget.set_dmabuf_scanout(rdw::DmabufScanout {
widget.set_dmabuf_scanout(rdw::RdwDmabufScanout {
width: s.width,
height: s.height,
stride: s.stride,