diff options
Diffstat (limited to 'src/parser.rs')
| -rw-r--r-- | src/parser.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/src/parser.rs b/src/parser.rs index ea96740..57abbbb 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,5 +1,6 @@  use std::collections::HashMap; +use autopilot::key::{Flag, KeyCodeConvertible};  use combine::*;  use combine::easy::Errors as CombineErrors;  use combine::parser::choice::or; @@ -23,6 +24,11 @@ pub enum HeadphoneButton {  type Trigger = Vec<HeadphoneButton>;  type Action = String; +enum Action2<'a, T: 'a + KeyCodeConvertible> { +    Map(&'a [(T, &'a [Flag])]), +    Command(&'a [&'a str]), +} +  #[repr(C)]  #[derive(Debug, PartialEq)]  pub enum MapKind { | 
