host/stream_comm.c
/** Translates a return value from one of the wallet functions into a Success
  * or Failure response packet which is written to the stream.
  * \param r The return value from the wallet function.
  */
Translates a return value from one of the wallet functions into a Success
or Failure response packet which is written to the stream.
\param r The return value from the wallet function.
Translates a return value from one of the wallet functions into a Success or Failure response packet which is written to the stream . \ param r The return value from the wallet function .
static void translateWalletError(WalletErrors r)
{
	Success message_buffer;
	if (r == WALLET_NO_ERROR)
		sendPacket(PACKET_TYPE_SUCCESS, Success_fields, &message_buffer);
	else
		writeFailureString(STRINGSET_WALLET, (uint8_t)r);
}
static void translateWalletError ( WalletErrors r ) { Success message_buffer ; if ( r == WALLET_NO_ERROR ) sendPacket ( PACKET_TYPE_SUCCESS , Success_fields , & message_buffer ) ; else writeFailureString ( STRINGSET_WALLET , ( uint8_t ) r ) ; }
Translates a return value from one of the wallet functions into a Success
 or Failure response packet which is written to the stream.
Translates a return value from one of the wallet functions into a Success or Failure response packet which is written to the stream .