mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-19 19:21:13 +03:00
19
src/plugin/mod.rs
Normal file
19
src/plugin/mod.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use hbb_common::{dlopen::symbor::Library, log, ResultType};
|
||||
use std::{
|
||||
ffi::{c_char, CStr},
|
||||
path::Path,
|
||||
};
|
||||
|
||||
mod callback_msg;
|
||||
mod config;
|
||||
pub mod desc;
|
||||
mod plugins;
|
||||
|
||||
pub use plugins::load_plugins;
|
||||
|
||||
#[inline]
|
||||
fn cstr_to_string(cstr: *const c_char) -> ResultType<String> {
|
||||
Ok(String::from_utf8(unsafe {
|
||||
CStr::from_ptr(cstr).to_bytes().to_vec()
|
||||
})?)
|
||||
}
|
||||
Reference in New Issue
Block a user