#[derive(Clone, Copy, PartialEq, Eq)]
pub enum SelectionMode {
Byte,
Bit,
}
#[derive(Clone, Copy, PartialEq, Eq)]
pub enum InputMode {
Normal,
Selecting,
GotoOffset,
Help,
DecoderSettings,
ParamEdit,
}
#[derive(Clone, PartialEq, Eq)]
pub enum ParamType {
String,
Int,
Bool,
Choice(Vec<std::string::String>),
}
#[derive(Clone)]
pub struct DecoderParam {
pub name: String,
pub param_type: ParamType,
#[allow(dead_code)]
pub default: String,
pub value: String,
}
#[derive(Clone)]
pub struct DecoderInfo {
pub name: String,
pub source: DecoderSource,
pub enabled: bool,
pub params: Vec<DecoderParam>,
}
#[derive(Clone, PartialEq, Eq)]
pub enum DecoderSource {
Builtin,
Lua,
Wasm,
}