Function safe_authenticator::ffi::login [] [src]

#[no_mangle]
pub unsafe extern "C" fn login(
    account_locator: *const c_char,
    account_password: *const c_char,
    user_data: *mut c_void,
    network_cb_user_data: *mut c_void,
    o_network_obs_cb: unsafe extern "C" fn(_: *mut c_void, _: i32, _: i32),
    o_cb: extern "C" fn(_: *mut c_void, _: FfiResult, _: *mut Authenticator)
)

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 callback, while network_cb_user_data corresponds to the first parameter of the network events observer callback (o_network_obs_cb).

Callback parameters: user data, error code, authenticator