diff --git a/src/lib.rs b/src/lib.rs index 04ef480..a82ba87 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1624,7 +1624,7 @@ impl VmcExtSettingWin { } #[derive(Debug)] -struct VmcExtConfig { +pub struct VmcExtConfig { path: String, } @@ -1651,6 +1651,18 @@ impl VmcMessage for VmcExtConfig { } } +impl VmcExtConfig { + 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(Clone, Copy, Debug)] enum ThruType { Float(f32),