rohc_decomp_enable_profile − Enable a decompression profile for a decompressor.
#include <rohc/rohc_decomp.h>
bool
rohc_decomp_enable_profile(
struct rohc_decomp *const decomp,
const rohc_profile_t profile
);
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.
The ROHCv1 and ROHCv2 profiles are incompatible. The same profile cannot be enabled in both versions 1 and 2.
decomp |
The ROHC decompressor |
profile
The profile to enable
true if the profile exists, false if the profile does not exist
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;
}
rohc_decomp.h(3), rohc_decomp_enable_profiles(3), rohc_decomp_disable_profile(3), rohc_decomp_disable_profiles(3)