wayland: make object versions type safe
This commit is contained in:
parent
0d7b45d149
commit
e3a1a0b30f
50 changed files with 198 additions and 173 deletions
|
|
@ -5,7 +5,7 @@ use {
|
|||
globals::{Global, GlobalName},
|
||||
ifs::wl_buffer::WlBuffer,
|
||||
leaks::Tracker,
|
||||
object::Object,
|
||||
object::{Object, Version},
|
||||
utils::buffd::{MsgParser, MsgParserError},
|
||||
video::{
|
||||
dmabuf::{DmaBuf, DmaBufPlane, PlaneVec},
|
||||
|
|
@ -33,7 +33,7 @@ impl WlDrmGlobal {
|
|||
self: Rc<Self>,
|
||||
id: WlDrmId,
|
||||
client: &Rc<Client>,
|
||||
version: u32,
|
||||
version: Version,
|
||||
) -> Result<(), WlDrmError> {
|
||||
let obj = Rc::new(WlDrm {
|
||||
id,
|
||||
|
|
@ -68,7 +68,7 @@ simple_add_global!(WlDrmGlobal);
|
|||
pub struct WlDrm {
|
||||
id: WlDrmId,
|
||||
pub client: Rc<Client>,
|
||||
version: u32,
|
||||
version: Version,
|
||||
tracker: Tracker<Self>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue