Function tari_wallet_ffi::pending_outbound_transaction_get_destination_public_key [−][src]
#[no_mangle]pub unsafe extern "C" fn pending_outbound_transaction_get_destination_public_key(
transaction: *mut TariPendingOutboundTransaction,
error_out: *mut c_int
) -> *mut TariPublicKey
Gets the destination TariPublicKey of a TariPendingOutboundTransaction
Arguments
transaction
- The pointer to a TariPendingOutboundTransaction
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 TariPublicKey
- Returns the destination TariPublicKey, note that it will be
ptr::null_mut() if transaction is null
Safety
The public_key_destroy
method must be called when finished with a TariPublicKey to prevent a memory leak