Skip to main content

libsession_session_is_local

Function libsession_session_is_local 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn libsession_session_is_local( ctx: *mut LibsessionContext, session: *const LibsessionSession, ret_local: *mut bool, ) -> LibsessionStatus
Expand description

Reports whether a session is local.

ยงSafety

Non-null ctx must be a live context with exclusive access for this call. Non-null session must point to a valid NUL-terminated string for this call. Non-null ret_local must point to writable, aligned storage that does not overlap the context or session string. It is written only on success.