rohc_decomp_free

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
EXAMPLE
SEE ALSO

NAME

rohc_decomp_free − Destroy the given ROHC decompressor.

SYNOPSIS

#include <rohc/rohc_decomp.h>

void rohc_decomp_free(
struct rohc_decomp *const decomp

);

DESCRIPTION

Destroy a ROHC decompressor that was successfully created with rohc_decomp_new2

PARAMETERS

decomp

The decompressor to destroy

STRUCTURES

EXAMPLE

struct rohc_decomp *decompressor; /* the ROHC decompressor */

/* Create a ROHC decompressor to operate:
* − with large CIDs,
* − with the maximum of 5 streams (MAX_CID = 4),
* − in Unidirectional mode (U−mode).
*/
decompressor = rohc_decomp_new2(ROHC_LARGE_CID, 4, ROHC_U_MODE);
if(decompressor == NULL)
{
fprintf(stderr, "failed create the ROHC decompressor0);
goto error;
}

rohc_decomp_free(decompressor);

SEE ALSO

rohc_decomp.h(3), rohc_decomp_new2(3)