rohc_comp_enable_profile

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
RETURN VALUE
EXAMPLE
SEE ALSO

NAME

rohc_comp_enable_profile − Enable a compression profile for a compressor.

SYNOPSIS

#include <rohc/rohc_comp.h>

bool rohc_comp_enable_profile(
struct rohc_comp *const comp
,
const rohc_profile_t profile

);

DESCRIPTION

Enable a compression profiles for a compressor.

The ROHC compressor does not use the compression profiles that are not enabled. Thus not enabling a profile might affect compression performances. Compression will fail if no profile at all is enabled.

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

The ROHCv1 and ROHCv2 profiles are incompatible. The same profile cannot be enabled in both versions 1 and 2.

PARAMETERS

comp

The ROHC compressor

profile

The profile to enable

STRUCTURES

RETURN VALUE

true if the profile exists, false if the profile does not exist or a similar profile is already enabled

EXAMPLE

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

if(!rohc_comp_enable_profile(compressor, ROHC_PROFILE_UNCOMPRESSED))
{
fprintf(stderr, "failed to enable the Uncompressed profile0);
goto release_compressor;
}
if(!rohc_comp_enable_profile(compressor, ROHC_PROFILE_IP))
{
fprintf(stderr, "failed to enable the IP−only profile0);
goto release_compressor;
}

SEE ALSO

rohc_comp.h(3), rohc_comp_enable_profiles(3), rohc_comp_disable_profile(3), rohc_comp_disable_profiles(3)