mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02:00
fix idd, plugin_monitor function decl
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
89ff81da08
commit
c1e96377e1
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ pub type DownLoadDriver = fn() -> ResultType<()>;
|
||||||
pub type CreateDevice = fn() -> ResultType<()>;
|
pub type CreateDevice = fn() -> ResultType<()>;
|
||||||
pub type InstallUpdateDriver = fn(&mut bool) -> ResultType<()>;
|
pub type InstallUpdateDriver = fn(&mut bool) -> ResultType<()>;
|
||||||
pub type UninstallDriver = fn(&mut bool) -> ResultType<()>;
|
pub type UninstallDriver = fn(&mut bool) -> ResultType<()>;
|
||||||
pub type PlugInMonitor = fn(u32) -> ResultType<()>;
|
pub type PlugInMonitor = fn(u32, u32, u32) -> ResultType<()>;
|
||||||
pub type PlugOutMonitor = fn(u32) -> ResultType<()>;
|
pub type PlugOutMonitor = fn(u32) -> ResultType<()>;
|
||||||
pub type UpdateMonitorModes = fn(u32, u32, PMonitorMode) -> ResultType<()>;
|
pub type UpdateMonitorModes = fn(u32, u32, PMonitorMode) -> ResultType<()>;
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ pub fn plug_in_monitor(monitor_index: u32) -> ResultType<()> {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.plug_in_monitor
|
.plug_in_monitor
|
||||||
.ok_or(anyhow::Error::msg("plug_in_monitor method not found"))?;
|
.ok_or(anyhow::Error::msg("plug_in_monitor method not found"))?;
|
||||||
f(monitor_index)?;
|
f(monitor_index, 0, 20)?;
|
||||||
lock.insert(monitor_index);
|
lock.insert(monitor_index);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue