Function tari_wallet_ffi::completed_transaction_get_message[][src]

#[no_mangle]pub unsafe extern "C" fn completed_transaction_get_message(
    transaction: *mut TariCompletedTransaction,
    error_out: *mut c_int
) -> *const c_char

Gets the message of a TariCompletedTransaction

Arguments

transaction - The pointer to a TariCompletedTransaction 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

*const c_char - Returns the pointer to the char array, note that it will return a pointer to an empty char array if transaction is null

Safety

The string_destroy method must be called when finished with string coming from rust to prevent a memory leak