rohc_decomp_enable_profiles

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
RETURN VALUE
EXAMPLE
SEE ALSO

NAME

rohc_decomp_enable_profiles − Enable several decompression profiles for a decompressor.

SYNOPSIS

#include <rohc/rohc_decomp.h>

bool rohc_decomp_enable_profiles(
struct rohc_decomp *const decomp
,
...

);

DESCRIPTION

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

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

PARAMETERS

decomp

The ROHC decompressor

...

The sequence of decompression 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_decomp *decompressor; /* the ROHC decompressor */

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

SEE ALSO

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