rohc_comp_enable_profiles − Enable several compression profiles for a compressor.
#include <rohc/rohc_comp.h>
bool
rohc_comp_enable_profiles(
struct rohc_comp *const comp,
...
);
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.
comp |
The ROHC compressor | ||
... |
The sequence of compression 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_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;
}
rohc_comp.h(3), rohc_comp_enable_profile(3), rohc_comp_disable_profile(3), rohc_comp_disable_profiles(3)