rohc_decomp_enable_profile

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
RETURN VALUE
EXAMPLE
SEE ALSO

NAME

rohc_decomp_enable_profile − Enable a decompression profile for a decompressor.

SYNOPSIS

#include <rohc/rohc_decomp.h>

bool rohc_decomp_enable_profile(
struct rohc_decomp *const decomp
,
const rohc_profile_t profile

);

DESCRIPTION

Enable a decompression profiles for a decompressor.

The ROHC decompressor does not use the decompression profiles that are not enabled. Thus not enabling a profile might cause the decompressor to reject streams. Decompression will always fail if no profile at all is enabled.

If the profile is already enabled, nothing is performed and success is reported.

PARAMETERS

decomp

The ROHC decompressor

profile

The profile to enable

STRUCTURES

RETURN VALUE

true if the profile exists, false if the profile does not exist

EXAMPLE

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

if(!rohc_decomp_enable_profile(decompressor, ROHC_PROFILE_UNCOMPRESSED))
{
fprintf(stderr, "failed to enable the Uncompressed profile0);
goto release_decompressor;
}
if(!rohc_decomp_enable_profile(decompressor, ROHC_PROFILE_IP))
{
fprintf(stderr, "failed to enable the IP−only profile0);
goto release_decompressor;
}

SEE ALSO

rohc_decomp.h(3), rohc_decomp_enable_profiles(3), rohc_decomp_disable_profile(3), rohc_decomp_disable_profiles(3)