session_builder_create

Function session_builder_create 

Source
pub unsafe extern "C" fn session_builder_create(
    builder: *mut *mut session_builder,
    store: *mut signal_protocol_store_context,
    remote_address: *const signal_protocol_address,
    global_context: *mut signal_context,
) -> c_int
Expand description

Constructs a session builder.

The store and global contexts must remain valid for the lifetime of the session builder.

When finished, free the returned instance by calling session_builder_free().

@param builder set to a freshly allocated session builder instance @param store the signal_protocol_store_context to store all state information in @param remote_address the address of the remote user to build a session with @param global_context the global library context @return 0 on success, or negative on failure