#[unsafe(no_mangle)]pub unsafe extern "C" fn libsession_pid_get_session(
ctx: *mut libsession_context,
pid: pid_t,
ret_session: *mut *mut c_char,
) -> LibsessionStatusExpand description
Retrieves an allocated session ID for a process.
ยงSafety
Non-null ctx must be a live context with exclusive access for this call.
Non-null ret_session must point to writable, aligned pointer storage that
does not overlap the context. It is written only on success. Free the
resulting string with libsession_session_id_free.