src/pomp_msg.c
int pomp_msg_dump(const struct pomp_msg *msg,
		char *dst, uint32_t maxdst)
{
	int res = 0;
	struct pomp_decoder dec = POMP_DECODER_INITIALIZER;

	POMP_RETURN_ERR_IF_FAILED(msg != NULL, -EINVAL);

	res = pomp_decoder_init(&dec, msg);
	if (res == 0)
		res = pomp_decoder_dump(&dec, dst, maxdst);

	/* Always clear decoder, even in case of error during dump */
	(void)pomp_decoder_clear(&dec);
	return res;
}
/*
 * See documentation in public header.
 */
See documentation in public header.
See documentation in public header .
int pomp_msg_dump(const struct pomp_msg *msg,
		char *dst, uint32_t maxdst)
{
	int res = 0;
	struct pomp_decoder dec = POMP_DECODER_INITIALIZER;
	POMP_RETURN_ERR_IF_FAILED(msg != NULL, -EINVAL);
	res = pomp_decoder_init(&dec, msg);
	if (res == 0)
		res = pomp_decoder_dump(&dec, dst, maxdst);
	(void)pomp_decoder_clear(&dec);
	return res;
}
int pomp_msg_dump ( const struct pomp_msg * msg , char * dst , uint32_t maxdst ) { int res = 0 ; struct pomp_decoder dec = POMP_DECODER_INITIALIZER ; POMP_RETURN_ERR_IF_FAILED ( msg != NULL , - EINVAL ) ; res = pomp_decoder_init ( & dec , msg ) ; if ( res == 0 ) res = pomp_decoder_dump ( & dec , dst , maxdst ) ; ( void ) pomp_decoder_clear ( & dec ) ; return res ; }
See documentation in public header.
See documentation in public header .
/* Always clear decoder, even in case of error during dump */