config: add various new functions
This commit is contained in:
parent
f1a3705699
commit
e24a61bc62
12 changed files with 435 additions and 28 deletions
|
|
@ -385,6 +385,45 @@ pub enum ClientMessage<'a> {
|
|||
DestroyKeymap {
|
||||
keymap: Keymap,
|
||||
},
|
||||
GetConnectorName {
|
||||
connector: Connector,
|
||||
},
|
||||
GetConnectorModel {
|
||||
connector: Connector,
|
||||
},
|
||||
GetConnectorManufacturer {
|
||||
connector: Connector,
|
||||
},
|
||||
GetConnectorSerialNumber {
|
||||
connector: Connector,
|
||||
},
|
||||
GetConnectors {
|
||||
device: Option<DrmDevice>,
|
||||
connected_only: bool,
|
||||
},
|
||||
ConnectorGetPosition {
|
||||
connector: Connector,
|
||||
},
|
||||
GetConfigDir,
|
||||
GetWorkspaces,
|
||||
UnsetEnv {
|
||||
key: &'a str,
|
||||
},
|
||||
SetLogLevel {
|
||||
level: LogLevel,
|
||||
},
|
||||
GetDrmDeviceDevnode {
|
||||
device: DrmDevice,
|
||||
},
|
||||
GetInputDeviceSyspath {
|
||||
device: InputDevice,
|
||||
},
|
||||
GetInputDeviceDevnode {
|
||||
device: InputDevice,
|
||||
},
|
||||
SetIdle {
|
||||
timeout: Duration,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
@ -444,7 +483,7 @@ pub enum Response {
|
|||
GetFullscreen {
|
||||
fullscreen: bool,
|
||||
},
|
||||
GetDeviceConnectors {
|
||||
GetConnectors {
|
||||
connectors: Vec<Connector>,
|
||||
},
|
||||
GetDrmDeviceSyspath {
|
||||
|
|
@ -493,6 +532,37 @@ pub enum Response {
|
|||
AddPollable {
|
||||
id: Result<PollableId, String>,
|
||||
},
|
||||
GetConnectorName {
|
||||
name: String,
|
||||
},
|
||||
GetConnectorModel {
|
||||
model: String,
|
||||
},
|
||||
GetConnectorManufacturer {
|
||||
manufacturer: String,
|
||||
},
|
||||
GetConnectorSerialNumber {
|
||||
serial_number: String,
|
||||
},
|
||||
ConnectorGetPosition {
|
||||
x: i32,
|
||||
y: i32,
|
||||
},
|
||||
GetConfigDir {
|
||||
dir: String,
|
||||
},
|
||||
GetWorkspaces {
|
||||
workspaces: Vec<Workspace>,
|
||||
},
|
||||
GetDrmDeviceDevnode {
|
||||
devnode: String,
|
||||
},
|
||||
GetInputDeviceSyspath {
|
||||
syspath: String,
|
||||
},
|
||||
GetInputDeviceDevnode {
|
||||
devnode: String,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue