rohc_decomp_enable_profiles − Enable several decompression profiles for a decompressor.
#include <rohc/rohc_decomp.h>
bool
rohc_decomp_enable_profiles(
struct rohc_decomp *const decomp,
...
);
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.
decomp |
The ROHC decompressor | ||
... |
The sequence of decompression profiles to enable, the sequence shall be terminated by −1 |
true if all of the profiles exist, false if at least one of the profiles does not exist
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;
}
rohc_decomp.h(3), rohc_decomp_enable_profile(3), rohc_decomp_disable_profile(3), rohc_decomp_disable_profiles(3)