rohc_comp_enable_profiles

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
RETURN VALUE
EXAMPLE
SEE ALSO

NAME

rohc_comp_enable_profiles − Enable several compression profiles for a compressor.

SYNOPSIS

#include <rohc/rohc_comp.h>

bool rohc_comp_enable_profiles(
struct rohc_comp *const comp
,
...

);

DESCRIPTION

Enable several compression profiles for a compressor. The list of profiles to enable shall stop with −1.

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 one or more of the profiles are already enabled, nothing is performed and success is reported.

PARAMETERS

comp

The ROHC compressor

...

The sequence of compression profiles to enable, the sequence shall be terminated by −1

STRUCTURES

RETURN VALUE

true if all of the profiles exist, false if at least one of the profiles does not exist

EXAMPLE

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

if(!rohc_comp_enable_profiles(compressor, ROHC_PROFILE_UDP,
ROHC_PROFILE_UDPLITE, −1))
{
fprintf(stderr, "failed to enable the IP/UDP and IP/UDP−Lite "
"profiles0);
goto release_compressor;
}

SEE ALSO

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