Skip to main content

Crate session

Crate session 

Source

Structs§

LibsessionContext
LibsessionSession
libsession_monitor

Enums§

Error
LibsessionBackend
LibsessionLogLevel
LibsessionSessionState
LibsessionStatus
LibsessionUserState

Functions§

libsession_free
libsession_get_backend⚠
libsession_get_log_level⚠
Retrieves the context’s logging level.
libsession_get_session⚠
Retrieves an allocated session ID for the current process.
libsession_monitor_fd
libsession_monitor_flush
libsession_monitor_free
libsession_monitor_new
libsession_new
libsession_pid_get_owner_uid⚠
Safety
libsession_pid_get_session⚠
Retrieves an allocated session ID for a process.
libsession_session_free⚠
Frees an owned session ID handle.
libsession_session_get_id⚠
Copies a session ID into an allocated, NUL-terminated C string.
libsession_session_get_state⚠
Safety
libsession_session_get_uid⚠
Safety
libsession_session_id_free⚠
Frees a string returned by this library, such as an ID from libsession_session_get_id.
libsession_session_is_active⚠
Safety
libsession_session_is_local⚠
Reports whether a session is local.
libsession_session_list⚠
libsession_session_list_free⚠
libsession_set_log_fn⚠
Sets the context’s logging callback, or disables callbacks with None.
libsession_set_log_level⚠
Sets the context’s logging level.
libsession_uid_get_display⚠
Safety
libsession_uid_get_state⚠
Safety

Type Aliases§

LibsessionLogFn
Result