mobile changes

This commit is contained in:
2026-03-26 16:36:46 +07:00
parent 35c9c5c18a
commit 64d09ee7bf
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -62,7 +62,12 @@ pub struct SessionManager;
#[uniffi::export]
impl SessionManager {
pub(crate) fn spawn_session(
#[uniffi::constructor]
pub fn new() -> Arc<Self> {
Arc::new(SessionManager)
}
pub fn spawn_session(
&self,
remote_address: String,
tun_fd: Option<i32>,
+1 -1
View File
@@ -2,7 +2,7 @@ namespace netrunner_client {};
interface SessionManager {
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 {