ROHC compression/decompression library
Data Structures | Macros | Functions
decomp_list.h File Reference

ROHC generic list decompression. More...

#include "rohc_list.h"
#include "rohc_traces_internal.h"
Include dependency graph for decomp_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  list_decomp
 The context for list decompression. More...
 

Macros

#define rd_list_warn(decomp_list, format, ...)
 
#define rd_list_debug(decomp_list, format, ...)
 

Functions

int rohc_list_decode_maybe (struct list_decomp *const decomp, const uint8_t *const packet, const size_t packet_len)
 Decompress the compressed list in given packet if present. More...
 
bool 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. More...
 

Detailed Description

ROHC generic list decompression.

Author
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Macro Definition Documentation

#define rd_list_debug (   decomp_list,
  format,
  ... 
)
Value:
rohc_debug(decomp_list, ROHC_TRACE_DECOMP, (decomp_list)->profile_id, \
format, ##__VA_ARGS__)
#define rohc_debug(entity_struct, entity, profile, format,...)
Definition: rohc_traces_internal.h:61
Definition: rohc_traces.h:84

Print a debug trace for the given decompression list

#define rd_list_warn (   decomp_list,
  format,
  ... 
)
Value:
rohc_warning(decomp_list, ROHC_TRACE_DECOMP, (decomp_list)->profile_id, \
format, ##__VA_ARGS__)
#define rohc_warning(entity_struct, entity, profile, format,...)
Definition: rohc_traces_internal.h:71
Definition: rohc_traces.h:84

Print a warning trace for the given decompression list

Function Documentation

bool 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.

Parameters
decompThe context for list decompression
xi_indexThe XI index
xi_index_valueThe XI index value
rohc_packetThe beginning of the XI item in the ROHC header
rohc_max_lenThe remaining length (in bytes) of the ROHC header
[out]item_lengthThe length (in bytes) of the created item
Returns
true if item was successfully created, false if a problem occurred
int rohc_list_decode_maybe ( struct list_decomp decomp,
const uint8_t *  packet,
size_t  packet_len 
)

Decompress the compressed list in given packet if present.

Parameters
decompThe list decompressor
packetThe ROHC packet to decompress
packet_lenThe remaining length of the packet to decode (in bytes)
Returns
The size of the compressed list in packet in case of success, -1 in case of failure