Function safe_authenticator::ffi::create_acc [] [src]

#[no_mangle]
pub unsafe extern "C" fn create_acc(
    account_locator: *const c_char,
    account_password: *const c_char,
    invitation: *const c_char,
    network_cb_user_data: *mut c_void,
    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)
)

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