ROHC compression/decompression library
|
ROHC common definitions and routines. More...
#include <rohc/rohc_profiles.h>
#include <stdlib.h>
#include <stddef.h>
Go to the source code of this file.
Macros | |
#define | ROHC_DEPRECATED(msg) |
#define | ROHC_EXPORT |
#define | ROHC_ETHERTYPE 0x22f1 |
The Ethertype assigned to the ROHC protocol by the IEEE. More... | |
#define | ROHC_LARGE_CID_MAX ((1U << 14) - 1) /* 2^14 - 1 = 16383 */ |
The maximum value for large CIDs. More... | |
#define | ROHC_SMALL_CID_MAX 15U |
The maximum value for small CIDs. More... | |
Typedefs | |
typedef size_t | rohc_cid_t |
Enumerations | |
enum | rohc_status_t { ROHC_STATUS_OK = 0, ROHC_STATUS_SEGMENT = 1, ROHC_STATUS_MALFORMED = 2, ROHC_STATUS_NO_CONTEXT = 3, ROHC_STATUS_BAD_CRC = 4, ROHC_STATUS_OUTPUT_TOO_SMALL = 5, ROHC_STATUS_ERROR = 6 } |
The status code of several functions in the library API. More... | |
enum | rohc_mode_t { ROHC_UNKNOWN_MODE = 0, ROHC_U_MODE = 1, ROHC_O_MODE = 2, ROHC_R_MODE = 3 } |
ROHC operation modes. More... | |
enum | rohc_cid_type_t { ROHC_LARGE_CID, ROHC_SMALL_CID } |
The different types of Context IDs (CID) More... | |
enum | rohc_reordering_offset_t { ROHC_REORDERING_NONE = 0, ROHC_REORDERING_QUARTER = 1, ROHC_REORDERING_HALF = 2, ROHC_REORDERING_THREEQUARTERS = 3 } |
The different values of reordering offset. More... | |
Functions | |
char *ROHC_EXPORT | rohc_version (void) |
Get the version of the ROHC library. More... | |
const char *ROHC_EXPORT | rohc_strerror (const rohc_status_t status) |
Give a description for the given ROHC status code. More... | |
const char *ROHC_EXPORT | rohc_get_mode_descr (const rohc_mode_t mode) |
Give a description for the given ROHC mode. More... | |
ROHC common definitions and routines.
#define ROHC_DEPRECATED | ( | msg | ) |
Macro that handles deprecated declarations gracefully
#define ROHC_EXPORT |
Macro that handles DLL export declarations gracefully
typedef size_t rohc_cid_t |
A ROHC Context ID (CID)