feat: add session related function

This commit is contained in:
Kingtous
2023-04-28 14:55:40 +08:00
parent c140bcfed6
commit 952598af25
5 changed files with 130 additions and 211 deletions

View File

@@ -6,8 +6,8 @@ use std::{ffi::{c_char, c_void}, os::raw::c_uint};
/// The data is owned by librustdesk.
#[repr(C)]
pub struct NativeReturnValue{
return_type: c_uint,
data: *const c_void
pub return_type: c_uint,
pub data: *const c_void
}
pub(super) extern "C" fn cb_native_data(method: *const c_char, json: *const c_char, raw: *const c_void, raw_len: usize) -> NativeReturnValue {