rohc_comp_free − Destroy the given ROHC compressor.
#include <rohc/rohc_comp.h>
void
rohc_comp_free(
struct rohc_comp *const comp
);
Destroy a ROHC compressor that was successfully created with rohc_comp_new2
comp |
The ROHC compressor to destroy |
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);
rohc_comp.h(3), rohc_comp_new2(3)