[][src]Module safe_authenticator::ffi

FFI routines.

Modules

apps

Apps management

errors

Errors

ipc

Authenticator communication with apps

logging

Logging utilities Logging utilities This module is exactly the same as safe_app::ffi::logging, therefore changes to either one of them should also be reflected to the other to stay in sync.

Functions

auth_free

Discard and clean up the previously allocated authenticator instance. Use this only if the authenticator is obtained from one of the auth functions in this crate (create_acc or login). Using auth after a call to this function is undefined behaviour.

auth_is_mock

Returns true if this crate was compiled against mock-routing.

auth_reconnect

Try to restore a failed connection with the network.

auth_set_config_dir_path

Sets the path from which the safe_core.config file will be read.

create_acc

Create a registered client. This or any one of the other companion functions to get an authenticator instance must be called before initiating any operation allowed by this module. The user_data parameter corresponds to the first parameter of the o_cb and o_disconnect_notifier_cb callbacks.

login

Log into a registered account. This or any one of the other companion functions to get an authenticator instance must be called before initiating any operation allowed for authenticator. The user_data parameter corresponds to the first parameter of the o_cb and o_disconnect_notifier_cb callbacks.