Function tari_wallet_ffi::wallet_get_contacts[][src]

#[no_mangle]pub unsafe extern "C" fn wallet_get_contacts(
    wallet: *mut TariWallet,
    error_out: *mut c_int
) -> *mut TariContacts

Get the TariContacts from a TariWallet

Arguments

wallet - The TariWallet pointer error_out - Pointer to an int which will be modified to an error code should one occur, may not be null. Functions as an out parameter.

Returns

*mut TariContacts - returns the contacts, note that it returns ptr::null_mut() if wallet is null

Safety

The contacts_destroy method must be called when finished with a TariContacts to prevent a memory leak