autocommit 2022-05-01 21:44:09 CEST
This commit is contained in:
parent
cca3850800
commit
04580c4aeb
38 changed files with 815 additions and 124 deletions
|
|
@ -135,6 +135,10 @@ pub struct Drm {
|
|||
}
|
||||
|
||||
impl Drm {
|
||||
pub fn open_existing(fd: OwnedFd) -> Self {
|
||||
Self { fd: Rc::new(fd) }
|
||||
}
|
||||
|
||||
pub fn reopen(fd: c::c_int, need_primary: bool) -> Result<Self, DrmError> {
|
||||
Ok(Self {
|
||||
fd: reopen(fd, need_primary)?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue