mobile changes
This commit is contained in:
+6
-1
@@ -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>,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user