rohc_decomp_free − Destroy the given ROHC decompressor.
#include <rohc/rohc_decomp.h>
void
rohc_decomp_free(
struct rohc_decomp *const decomp
);
Destroy a ROHC decompressor that was successfully created with rohc_decomp_new2
decomp |
The decompressor to destroy |
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);
rohc_decomp.h(3), rohc_decomp_new2(3)