src/pomp_prot.c
struct pomp_prot *pomp_prot_new(void)
{
	struct pomp_prot *prot = NULL;

	/* Allocate prot structure */
	prot = calloc(1, sizeof(*prot));
	if (prot == NULL)
		return NULL;

	/* Reset internal state */
	pomp_prot_reset_state(prot);
	return prot;
}
/**
 * Create a new protocol decoder object.
 * @return protocol decoder object or NULL in case of error.
 */
Create a new protocol decoder object.
@return protocol decoder object or NULL in case of error.
Create a new protocol decoder object . @return protocol decoder object or NULL in case of error .
struct pomp_prot *pomp_prot_new(void)
{
	struct pomp_prot *prot = NULL;
	prot = calloc(1, sizeof(*prot));
	if (prot == NULL)
		return NULL;
	pomp_prot_reset_state(prot);
	return prot;
}
struct pomp_prot * pomp_prot_new ( void ) { struct pomp_prot * prot = NULL ; prot = calloc ( 1 , sizeof ( * prot ) ) ; if ( prot == NULL ) return NULL ; pomp_prot_reset_state ( prot ) ; return prot ; }
Create a new protocol decoder object.
Create a new protocol decoder object .
/* Allocate prot structure */ /* Reset internal state */