From dee67a82e8fb773ceb03c1b38dc0bce7239e1177 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 7 Oct 2022 20:49:11 +0200 Subject: more work on lib: first negotiation --- client-native-lib/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client-native-lib/src/lib.rs') diff --git a/client-native-lib/src/lib.rs b/client-native-lib/src/lib.rs index bb88b9f..27c0595 100644 --- a/client-native-lib/src/lib.rs +++ b/client-native-lib/src/lib.rs @@ -12,7 +12,7 @@ use std::{pin::Pin, sync::Arc}; use futures_util::Future; use peer::Peer; use protocol::ProvideInfo; -use state::State; +use instance::Instance; use tokio::sync::RwLock; use webrtc::{ api::{ @@ -25,7 +25,7 @@ pub mod crypto; pub mod peer; pub mod protocol; pub mod signaling; -pub mod state; +pub mod instance; pub use webrtc; @@ -54,9 +54,9 @@ pub trait LocalResource: Send + Sync + 'static { pub trait EventHandler: Send + Sync + 'static { fn remote_resource_added( &self, - peer: &Peer, + peer: Arc, info: ProvideInfo, ) -> Pin>>; - fn remote_resource_removed(&self, peer: &Peer, id: String) + fn remote_resource_removed(&self, peer: Arc, id: String) -> Pin>>; } -- cgit v1.2.3-70-g09d2