Function tari_wallet_ffi::pending_inbound_transaction_get_message[][src]

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

Gets the message of a TariPendingInboundTransaction

Arguments

transaction - The pointer to a TariPendingInboundTransaction 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 a string coming from rust to prevent a memory leak