wayland: make object versions type safe
This commit is contained in:
parent
0d7b45d149
commit
e3a1a0b30f
50 changed files with 198 additions and 173 deletions
|
|
@ -4,7 +4,7 @@ use {
|
|||
globals::{Global, GlobalName},
|
||||
ifs::wp_cursor_shape_device_v1::WpCursorShapeDeviceV1,
|
||||
leaks::Tracker,
|
||||
object::Object,
|
||||
object::{Object, Version},
|
||||
utils::buffd::{MsgParser, MsgParserError},
|
||||
wire::{wp_cursor_shape_manager_v1::*, WpCursorShapeManagerV1Id},
|
||||
},
|
||||
|
|
@ -25,7 +25,7 @@ impl WpCursorShapeManagerV1Global {
|
|||
self: Rc<Self>,
|
||||
id: WpCursorShapeManagerV1Id,
|
||||
client: &Rc<Client>,
|
||||
version: u32,
|
||||
version: Version,
|
||||
) -> Result<(), WpCursorShapeManagerV1Error> {
|
||||
let mgr = Rc::new(WpCursorShapeManagerV1 {
|
||||
id,
|
||||
|
|
@ -61,7 +61,7 @@ pub struct WpCursorShapeManagerV1 {
|
|||
pub id: WpCursorShapeManagerV1Id,
|
||||
pub client: Rc<Client>,
|
||||
pub tracker: Tracker<Self>,
|
||||
pub version: u32,
|
||||
pub version: Version,
|
||||
}
|
||||
|
||||
impl WpCursorShapeManagerV1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue