src/pomp_prot.c
int pomp_prot_destroy(struct pomp_prot *prot)
{
	POMP_RETURN_ERR_IF_FAILED(prot != NULL, -EINVAL);
	if (prot->msg != NULL)
		pomp_msg_destroy(prot->msg);
	pomp_prot_reset_state(prot);
	free(prot);
	return 0;
}
/**
 * Destroy a protocol decoder object.
 * @param prot : protocol decoder.
 * @return 0 in case of success, negative errno value in case of error.
 */
Destroy a protocol decoder object.
@param prot : protocol decoder.
@return 0 in case of success, negative errno value in case of error.
Destroy a protocol decoder object . @param prot : protocol decoder . @return 0 in case of success negative errno value in case of error .
int pomp_prot_destroy(struct pomp_prot *prot)
{
	POMP_RETURN_ERR_IF_FAILED(prot != NULL, -EINVAL);
	if (prot->msg != NULL)
		pomp_msg_destroy(prot->msg);
	pomp_prot_reset_state(prot);
	free(prot);
	return 0;
}
int pomp_prot_destroy ( struct pomp_prot * prot ) { POMP_RETURN_ERR_IF_FAILED ( prot != NULL , - EINVAL ) ; if ( prot -> msg != NULL ) pomp_msg_destroy ( prot -> msg ) ; pomp_prot_reset_state ( prot ) ; free ( prot ) ; return 0 ; }
Destroy a protocol decoder object.
Destroy a protocol decoder object .