rohc_comp_free

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
EXAMPLE
SEE ALSO

NAME

rohc_comp_free − Destroy the given ROHC compressor.

SYNOPSIS

#include <rohc/rohc_comp.h>

void rohc_comp_free(
struct rohc_comp *const comp

);

DESCRIPTION

Destroy a ROHC compressor that was successfully created with rohc_comp_new2

PARAMETERS

comp

The ROHC compressor to destroy

STRUCTURES

EXAMPLE

struct rohc_comp *compressor; /* the ROHC compressor */

compressor = rohc_comp_new2(ROHC_SMALL_CID, ROHC_SMALL_CID_MAX,
gen_random_num, NULL);
if(compressor == NULL)
{
fprintf(stderr, "failed create the ROHC compressor0);
goto error;
}

rohc_comp_free(compressor);

SEE ALSO

rohc_comp.h(3), rohc_comp_new2(3)