ROHC compression/decompression library
|
ROHC generic list decompression. More...
Go to the source code of this file.
Data Structures | |
struct | list_decomp |
The context for list decompression. More... | |
Defines | |
#define | rd_list_warn(decomp_list, format,...) |
#define | rd_list_debug(decomp_list, format,...) |
Functions | |
int ROHC_EXPORT | rohc_list_decode_maybe (struct list_decomp *const decomp, const unsigned char *const packet, const size_t packet_len) |
Decompress the compressed list in given packet if present. | |
bool ROHC_EXPORT | rohc_decomp_list_create_item (struct list_decomp *const decomp, const unsigned int xi_index, const unsigned int xi_index_value, const uint8_t *const rohc_packet, const size_t rohc_max_len, size_t *const item_length) |
Create a list item from a XI item. |
ROHC generic list decompression.
#define rd_list_debug | ( | decomp_list, | |
format, | |||
... | |||
) |
rohc_debug(decomp_list, ROHC_TRACE_DECOMP, (decomp_list)->profile_id, \ format, ##__VA_ARGS__)
Print a debug trace for the given decompression list
#define rd_list_warn | ( | decomp_list, | |
format, | |||
... | |||
) |
rohc_warning(decomp_list, ROHC_TRACE_DECOMP, (decomp_list)->profile_id, \ format, ##__VA_ARGS__)
Print a warning trace for the given decompression list
bool ROHC_EXPORT rohc_decomp_list_create_item | ( | struct list_decomp *const | decomp, |
const unsigned int | xi_index, | ||
const unsigned int | xi_index_value, | ||
const uint8_t *const | rohc_packet, | ||
const size_t | rohc_max_len, | ||
size_t *const | item_length | ||
) |
Create a list item from a XI item.
decomp | The context for list decompression | |
xi_index | The XI index | |
xi_index_value | The XI index value | |
rohc_packet | The beginning of the XI item in the ROHC header | |
rohc_max_len | The remaining length (in bytes) of the ROHC header | |
[out] | item_length | The length (in bytes) of the created item |
int ROHC_EXPORT rohc_list_decode_maybe | ( | struct list_decomp * | decomp, |
const unsigned char * | packet, | ||
size_t | packet_len | ||
) |
Decompress the compressed list in given packet if present.
decomp | The list decompressor |
packet | The ROHC packet to decompress |
packet_len | The remaining length of the packet to decode (in bytes) |