mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-01 01:21:06 +03:00
plugin_framework, support log callback
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -20,6 +20,7 @@ lazy_static::lazy_static! {
|
||||
Arc::new(Mutex::new(conf))
|
||||
};
|
||||
}
|
||||
use crate::ui_interface::get_id;
|
||||
|
||||
pub(super) const CONFIG_TYPE_SHARED: &str = "shared";
|
||||
pub(super) const CONFIG_TYPE_PEER: &str = "peer";
|
||||
@@ -343,8 +344,12 @@ impl ManagerConfig {
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) extern "C" fn cb_get_local_peer_id() -> *const c_char {
|
||||
str_to_cstr_ret(&get_id())
|
||||
}
|
||||
|
||||
// Return shared config if peer is nullptr.
|
||||
pub(super) fn cb_get_conf(
|
||||
pub(super) extern "C" fn cb_get_conf(
|
||||
peer: *const c_char,
|
||||
id: *const c_char,
|
||||
key: *const c_char,
|
||||
|
||||
Reference in New Issue
Block a user