diff --git a/src/lib.rs b/src/lib.rs index ba02116..4a801ef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1939,7 +1939,7 @@ impl VmcExtSetCalibExec { } #[derive(Debug)] -struct VmcExtSetConfig { +pub struct VmcExtSetConfig { path: String } @@ -1963,6 +1963,18 @@ impl VmcMessage for VmcExtSetConfig { } } +impl VmcExtSetConfig { + pub fn new(path: String) -> MsgNewResult { + Ok(Self { path }) + } + pub fn new_vmc_message(path: String) -> TraitMsgNewResult { + match Self::new(path) { + Ok(val) => Ok(Box::new(val)), + Err(val) => Err(val) + } + } +} + #[derive(Debug)] struct VmcMessageNoArgs { addr: String