26 #ifndef ROHC_DECOMP_LIST_H
27 #define ROHC_DECOMP_LIST_H
34 #define rd_list_warn(decomp_list, format, ...) \
35 rohc_warning(decomp_list, ROHC_TRACE_DECOMP, (decomp_list)->profile_id, \
36 format, ##__VA_ARGS__)
39 #define rd_list_debug(decomp_list, format, ...) \
40 rohc_debug(decomp_list, ROHC_TRACE_DECOMP, (decomp_list)->profile_id, \
41 format, ##__VA_ARGS__)
67 const size_t index_table);
78 const size_t index_table,
83 const uint8_t ip_nh_type,
104 const uint8_t *
const packet,
105 const size_t packet_len)
106 __attribute__((warn_unused_result, nonnull(1, 2)));
109 const unsigned int xi_index,
110 const unsigned int xi_index_value,
111 const uint8_t *
const rohc_packet,
112 const size_t rohc_max_len,
113 size_t *
const item_length)
114 __attribute__((warn_unused_result, nonnull(1, 4, 6)));
int profile_id
Definition: decomp_list.h:94
struct rohc_list_item trans_table[ROHC_LIST_MAX_ITEM]
Definition: decomp_list.h:54
struct rohc_list lists[ROHC_LIST_GEN_ID_MAX+1]
Definition: decomp_list.h:57
size_t(* build_uncomp_item)(const struct list_decomp *const decomp, const uint8_t ip_nh_type, uint8_t *const dest)
Definition: decomp_list.h:82
int(* get_item_size)(const uint8_t *data, const size_t data_len)
Definition: decomp_list.h:70
The context for list decompression.
Definition: decomp_list.h:51
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.
Definition: decomp_list.c:350
void(* rohc_trace_callback2_t)(void *const priv_ctxt, const rohc_trace_level_t level, const rohc_trace_entity_t entity, const int profile, const char *const format,...)
The function prototype for the trace callback.
Definition: rohc_traces.h:118
bool(* check_item)(const struct list_decomp *const decomp, const size_t index_table)
Definition: decomp_list.h:66
bool(* create_item)(const uint8_t *const data, const size_t length, const size_t index_table, struct list_decomp *const decomp)
Definition: decomp_list.h:76
Define list compression with its function.
struct rohc_list pkt_list
Definition: decomp_list.h:60
bool(* rohc_list_item_cmp)(const struct rohc_list_item *const item, const uint8_t ext_type, const uint8_t *const ext_data, const size_t ext_len)
Definition: rohc_list.h:106
#define ROHC_LIST_GEN_ID_MAX
Definition: rohc_list.h:54
#define ROHC_LIST_MAX_ITEM
Definition: rohc_list.h:36
rohc_list_item_cmp cmp_item
Definition: decomp_list.h:73
void * trace_callback_priv
Definition: decomp_list.h:92
A list item.
Definition: rohc_list.h:80
Define a list for compression.
Definition: rohc_list.h:62
rohc_trace_callback2_t trace_callback
Definition: decomp_list.h:90
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.
Definition: decomp_list.c:143
Internal ROHC macros and functions for traces.