feat: add hooks for session

This commit is contained in:
Kingtous
2023-04-14 01:53:34 +08:00
parent 8cad0b7a6c
commit 8e70e2ffe4
3 changed files with 89 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
use librustdesk::{api::RustDeskApiTable};
use librustdesk::api::RustDeskApiTable;
/// This file demonstrates how to write a custom plugin for RustDesk.
use std::ffi::{c_char, c_int, CString};
@@ -9,8 +9,6 @@ lazy_static::lazy_static! {
pub static ref API: RustDeskApiTable = RustDeskApiTable::default();
}
#[no_mangle]
fn plugin_name() -> *const c_char {
return PLUGIN_NAME.as_ptr();