wayland: make object versions type safe
This commit is contained in:
parent
0d7b45d149
commit
e3a1a0b30f
50 changed files with 198 additions and 173 deletions
|
|
@ -7,7 +7,7 @@ use {
|
|||
zxdg_decoration_manager_v1::ZxdgDecorationManagerV1Error,
|
||||
},
|
||||
leaks::Tracker,
|
||||
object::Object,
|
||||
object::{Object, Version},
|
||||
utils::buffd::{MsgParser, MsgParserError},
|
||||
wire::{zwp_idle_inhibit_manager_v1::*, ZwpIdleInhibitManagerV1Id},
|
||||
},
|
||||
|
|
@ -28,7 +28,7 @@ impl ZwpIdleInhibitManagerV1Global {
|
|||
self: Rc<Self>,
|
||||
id: ZwpIdleInhibitManagerV1Id,
|
||||
client: &Rc<Client>,
|
||||
version: u32,
|
||||
version: Version,
|
||||
) -> Result<(), ZxdgDecorationManagerV1Error> {
|
||||
let obj = Rc::new(ZwpIdleInhibitManagerV1 {
|
||||
id,
|
||||
|
|
@ -63,7 +63,7 @@ simple_add_global!(ZwpIdleInhibitManagerV1Global);
|
|||
pub struct ZwpIdleInhibitManagerV1 {
|
||||
pub id: ZwpIdleInhibitManagerV1Id,
|
||||
pub client: Rc<Client>,
|
||||
pub _version: u32,
|
||||
pub _version: Version,
|
||||
pub tracker: Tracker<Self>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue