use callbacks on internal events (#100)

This commit is contained in:
Théo Monnom
2023-06-29 22:52:43 +02:00
committed by GitHub
parent efc334af8e
commit c7c82cc693
33 changed files with 1522 additions and 1447 deletions
+2 -5
View File
@@ -62,7 +62,7 @@ pub extern "C" fn livekit_ffi_request(
let handle_id = server::FFI_SERVER.next_id();
server::FFI_SERVER
.ffi_handles()
.ffi_handles
.insert(handle_id, Box::new(res));
handle_id
@@ -71,8 +71,5 @@ pub extern "C" fn livekit_ffi_request(
#[no_mangle]
pub extern "C" fn livekit_ffi_drop_handle(handle_id: FfiHandleId) -> bool {
// Free the memory
server::FFI_SERVER
.ffi_handles()
.remove(&handle_id)
.is_some()
server::FFI_SERVER.ffi_handles.remove(&handle_id).is_some()
}