mobile changes
This commit is contained in:
+6
-1
@@ -62,7 +62,12 @@ pub struct SessionManager;
|
|||||||
|
|
||||||
#[uniffi::export]
|
#[uniffi::export]
|
||||||
impl SessionManager {
|
impl SessionManager {
|
||||||
pub(crate) fn spawn_session(
|
#[uniffi::constructor]
|
||||||
|
pub fn new() -> Arc<Self> {
|
||||||
|
Arc::new(SessionManager)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn spawn_session(
|
||||||
&self,
|
&self,
|
||||||
remote_address: String,
|
remote_address: String,
|
||||||
tun_fd: Option<i32>,
|
tun_fd: Option<i32>,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ namespace netrunner_client {};
|
|||||||
|
|
||||||
interface SessionManager {
|
interface SessionManager {
|
||||||
constructor();
|
constructor();
|
||||||
Session start_mobile(string remote_address, optional i32 tun_fd, string cache_path);
|
Session spawn_session(string remote_address, optional i32 tun_fd, string cache_path);
|
||||||
};
|
};
|
||||||
|
|
||||||
interface Session {
|
interface Session {
|
||||||
|
|||||||
Reference in New Issue
Block a user