mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
20 lines
373 B
Rust
20 lines
373 B
Rust
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()
|
|
})?)
|
|
}
|