autocommit 2022-04-05 21:08:07 CEST
This commit is contained in:
parent
a3e9f21fc5
commit
1d33088dba
27 changed files with 982 additions and 699 deletions
|
|
@ -23,7 +23,7 @@ use crate::logind::{LogindError, Session};
|
|||
use crate::render::RenderError;
|
||||
use crate::state::State;
|
||||
use crate::udev::{Udev, UdevError, UdevMonitor};
|
||||
use crate::utils::clonecell::CloneCell;
|
||||
use crate::utils::clonecell::{CloneCell, UnsafeCellCloneSafe};
|
||||
use crate::utils::copyhashmap::CopyHashMap;
|
||||
use crate::utils::errorfmt::ErrorFmt;
|
||||
use crate::utils::oserror::OsError;
|
||||
|
|
@ -226,6 +226,8 @@ enum MetalDevice {
|
|||
Drm(Rc<MetalDrmDevice>),
|
||||
}
|
||||
|
||||
unsafe impl UnsafeCellCloneSafe for MetalDevice {}
|
||||
|
||||
struct DeviceHolder {
|
||||
devices: CopyHashMap<c::dev_t, MetalDevice>,
|
||||
input_devices: RefCell<Vec<Option<Rc<MetalInputDevice>>>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue