Launch commands for each device found if specified
This commit is contained in:
parent
0e8487cf83
commit
98399b030f
1 changed files with 148 additions and 57 deletions
14
drivers/pcid/src/config.rs
Normal file
14
drivers/pcid/src/config.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#[derive(Debug, Default, RustcDecodable)]
|
||||
pub struct Config {
|
||||
pub drivers: Vec<DriverConfig>
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, RustcDecodable)]
|
||||
pub struct DriverConfig {
|
||||
pub name: Option<String>,
|
||||
pub class: Option<u8>,
|
||||
pub subclass: Option<u8>,
|
||||
pub vendor: Option<u16>,
|
||||
pub device: Option<u16>,
|
||||
pub command: Option<Vec<String>>
|
||||
}
|
||||
Loading…
Reference in a new issue