autocommit 2022-04-05 18:28:42 CEST
This commit is contained in:
parent
1f05ea431e
commit
a3e9f21fc5
29 changed files with 568 additions and 225 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use crate::backend::{Backend, Connector, ConnectorEvent, OutputId};
|
||||
use crate::backend::{Backend, Connector, ConnectorEvent, ConnectorId, ConnectorKernelId};
|
||||
use crate::drm::drm::ConnectorType;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub struct DummyBackend {}
|
||||
|
|
@ -10,14 +11,21 @@ impl Backend for DummyBackend {
|
|||
}
|
||||
|
||||
pub struct DummyOutput {
|
||||
pub id: OutputId,
|
||||
pub id: ConnectorId,
|
||||
}
|
||||
|
||||
impl Connector for DummyOutput {
|
||||
fn id(&self) -> OutputId {
|
||||
fn id(&self) -> ConnectorId {
|
||||
self.id
|
||||
}
|
||||
|
||||
fn kernel_id(&self) -> ConnectorKernelId {
|
||||
ConnectorKernelId {
|
||||
ty: ConnectorType::Unknown(0),
|
||||
id: 0,
|
||||
}
|
||||
}
|
||||
|
||||
fn event(&self) -> Option<ConnectorEvent> {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue