Skip to content

Commit

Permalink
Remove the FFI session_release function
Browse files Browse the repository at this point in the history
  • Loading branch information
inetic committed Apr 12, 2024
1 parent e461918 commit d106679
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ pub unsafe extern "C" fn session_grab(context: *mut (), callback: Callback) -> S
session::grab_shared(sender).into()
}

/// Destroys state corresponding to this session handle but leaves the state shared with other
/// session intact.
///
/// After this function call, the callback passed to `session_create` will no longer be executed
/// and thus the `context` pointer (also passed to `session_create`) can be freed.
#[no_mangle]
pub unsafe extern "C" fn session_release(session: SessionHandle) {
session.release();
}

/// Closes the Ouisync session (common C-like API).
///
/// Also gracefully disconnects from all peers and asynchronously waits for the disconnections to
Expand Down

0 comments on commit d106679

Please sign in to comment.