wayland: make object versions type safe
This commit is contained in:
parent
0d7b45d149
commit
e3a1a0b30f
50 changed files with 198 additions and 173 deletions
|
|
@ -39,7 +39,7 @@ use {
|
|||
zxdg_decoration_manager_v1::ZxdgDecorationManagerV1Global,
|
||||
zxdg_output_manager_v1::ZxdgOutputManagerV1Global,
|
||||
},
|
||||
object::{Interface, ObjectId},
|
||||
object::{Interface, ObjectId, Version},
|
||||
state::State,
|
||||
utils::{
|
||||
copyhashmap::{CopyHashMap, Locked},
|
||||
|
|
@ -97,7 +97,7 @@ pub trait GlobalBase {
|
|||
self: Rc<Self>,
|
||||
client: &'a Rc<Client>,
|
||||
id: ObjectId,
|
||||
version: u32,
|
||||
version: Version,
|
||||
) -> Result<(), GlobalsError>;
|
||||
fn interface(&self) -> Interface;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue