36 #include <rohc/rohc.h>
37 #include <rohc/rohc_packets.h>
38 #include <rohc/rohc_traces.h>
39 #include <rohc/rohc_buf.h>
44 # define ROHC_EXPORT __declspec(dllexport)
307 __attribute__((warn_unused_result));
313 struct rohc_buf *
const uncomp_packet,
314 struct rohc_buf *
const rcvd_feedback,
315 struct rohc_buf *
const feedback_send)
316 __attribute__((warn_unused_result));
325 __attribute__((warn_unused_result,
const));
328 rohc_decomp_general_info_t *
const info)
329 __attribute__((warn_unused_result));
334 __attribute__((warn_unused_result));
338 __attribute__((warn_unused_result));
349 __attribute__((warn_unused_result));
352 size_t *
const max_cid)
353 __attribute__((warn_unused_result));
359 __attribute__((warn_unused_result));
363 __attribute__((warn_unused_result));
369 __attribute__((warn_unused_result));
373 __attribute__((warn_unused_result));
378 const size_t k,
const size_t n,
379 const size_t k_1,
const size_t n_1,
380 const size_t k_2,
const size_t n_2)
381 __attribute__((warn_unused_result));
384 size_t *
const k,
size_t *
const n,
385 size_t *
const k_1,
size_t *
const n_1,
386 size_t *
const k_2,
size_t *
const n_2)
387 __attribute__((warn_unused_result));
393 __attribute__((warn_unused_result));
402 __attribute__((warn_unused_result));
406 __attribute__((warn_unused_result));
410 __attribute__((warn_unused_result));
414 __attribute__((warn_unused_result));
418 __attribute__((warn_unused_result));
427 void *const priv_ctxt)
428 __attribute__((warn_unused_result));
unsigned long comp_bytes_nr
Definition: rohc_decomp.h:199
unsigned long corrected_sn_wraparounds
Definition: rohc_decomp.h:266
bool ROHC_EXPORT rohc_decomp_enable_profiles(struct rohc_decomp *const decomp,...)
Enable several decompression profiles for a decompressor.
Definition: rohc_decomp.c:3473
#define ROHC_EXPORT
Definition: rohc_decomp.h:46
The ROHC decompressor.
Definition: rohc_decomp_internals.h:142
unsigned long corrected_wrong_sn_updates
Definition: rohc_decomp.h:208
size_t rohc_cid_t
Definition: rohc.h:195
const char *ROHC_EXPORT rohc_decomp_get_state_descr(const rohc_decomp_state_t state)
Give a description for the given ROHC decompression context state.
Definition: rohc_decomp.c:2405
bool ROHC_EXPORT rohc_decomp_disable_profile(struct rohc_decomp *const decomp, const rohc_profile_t profile)
Disable a decompression profile for a decompressor.
Definition: rohc_decomp.c:3399
rohc_mode_t
ROHC operation modes.
Definition: rohc.h:111
bool ROHC_EXPORT rohc_decomp_set_features(struct rohc_decomp *const decomp, const rohc_decomp_features_t features)
Enable/disable features for ROHC decompressor.
Definition: rohc_decomp.c:3217
unsigned long corrected_wrong_sn_updates
Definition: rohc_decomp.h:149
unsigned long corrected_wrong_sn_updates
Definition: rohc_decomp.h:269
rohc_status_t
The status code of several functions in the library API.
Definition: rohc.h:79
bool ROHC_EXPORT rohc_decomp_get_rate_limits(const struct rohc_decomp *const decomp, size_t *const k, size_t *const n, size_t *const k_1, size_t *const n_1, size_t *const k_2, size_t *const n_2)
Get the rate limits for feedbacks currently configured.
Definition: rohc_decomp.c:3170
int profile_id
Definition: rohc_decomp.h:134
Some information about one decompression context.
Definition: rohc_decomp.h:190
rohc_cid_type_t
The different types of Context IDs (CID)
Definition: rohc.h:176
bool ROHC_EXPORT rohc_decomp_disable_profiles(struct rohc_decomp *const decomp,...)
Disable several decompression profiles for a decompressor.
Definition: rohc_decomp.c:3531
Definition: rohc_decomp.h:292
bool ROHC_EXPORT rohc_decomp_set_traces_cb2(struct rohc_decomp *const decomp, rohc_trace_callback2_t callback, void *const priv_ctxt)
Set the callback function used to manage traces in decompressor.
Definition: rohc_decomp.c:3587
Some general information about the decompressor.
Definition: rohc_decomp.h:246
Definition: rohc_decomp.h:290
unsigned short version_minor
Definition: rohc_decomp.h:251
bool ROHC_EXPORT rohc_decomp_get_general_info(const struct rohc_decomp *const decomp, rohc_decomp_general_info_t *const info)
Get some general information about the decompressor.
Definition: rohc_decomp.c:2634
unsigned long uncomp_bytes_nr
Definition: rohc_decomp.h:201
unsigned long nr_lost_packets
Definition: rohc_decomp.h:136
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
size_t prtt
Definition: rohc_decomp_internals.h:167
bool ROHC_EXPORT rohc_decomp_get_last_packet_info(const struct rohc_decomp *const decomp, rohc_decomp_last_packet_info_t *const info)
Get some information about the last decompressed packet.
Definition: rohc_decomp.c:2445
bool ROHC_EXPORT rohc_decomp_get_max_cid(const struct rohc_decomp *const decomp, size_t *const max_cid)
Get the maximal CID value the decompressor uses.
Definition: rohc_decomp.c:2736
unsigned short version_minor
Definition: rohc_decomp.h:128
unsigned long corrected_sn_wraparounds
Definition: rohc_decomp.h:205
size_t mrru
Definition: rohc_decomp_internals.h:187
unsigned long corrected_crc_failures
Definition: rohc_decomp.h:263
bool ROHC_EXPORT rohc_decomp_get_mrru(const struct rohc_decomp *const decomp, size_t *const mrru)
Get the Maximum Reconstructed Reception Unit (MRRU).
Definition: rohc_decomp.c:2864
Definition: rohc_decomp.h:79
Definition: rohc_decomp.h:288
Definition: rohc_decomp.h:83
bool ROHC_EXPORT rohc_decomp_set_rate_limits(struct rohc_decomp *const decomp, const size_t k, const size_t n, const size_t k_1, const size_t n_1, const size_t k_2, const size_t n_2)
Set the rate limits for feedbacks.
Definition: rohc_decomp.c:3070
bool ROHC_EXPORT rohc_decomp_set_prtt(struct rohc_decomp *const decomp, const size_t prtt)
Set the number of packets sent during one Round-Trip Time (RTT).
Definition: rohc_decomp.c:2923
unsigned long uncomp_bytes_nr
Definition: rohc_decomp.h:259
size_t contexts_nr
Definition: rohc_decomp.h:253
rohc_mode_t context_mode
Definition: rohc_decomp.h:130
rohc_status_t ROHC_EXPORT rohc_decompress3(struct rohc_decomp *const decomp, const struct rohc_buf rohc_packet, struct rohc_buf *const uncomp_packet, struct rohc_buf *const rcvd_feedback, struct rohc_buf *const feedback_send)
Decompress the given ROHC packet into one uncompressed packet.
Definition: rohc_decomp.c:702
unsigned long packets_nr
Definition: rohc_decomp.h:255
A network buffer for the ROHC library.
Definition: rohc_buf.h:104
unsigned long corrected_crc_failures
Definition: rohc_decomp.h:203
rohc_packet_t packet_type
Definition: rohc_decomp.h:151
rohc_decomp_state_t
The ROHC decompressor states.
Definition: rohc_decomp.h:74
rohc_decomp_features_t
The different features of the ROHC decompressor.
Definition: rohc_decomp.h:285
Some information about the last decompressed packet.
Definition: rohc_decomp.h:123
unsigned short version_major
Definition: rohc_decomp.h:249
unsigned long comp_bytes_nr
Definition: rohc_decomp.h:257
Definition: rohc_decomp.h:294
struct rohc_decomp *ROHC_EXPORT rohc_decomp_new2(const rohc_cid_type_t cid_type, const rohc_cid_t max_cid, const rohc_mode_t mode)
Create a new ROHC decompressor.
Definition: rohc_decomp.c:445
rohc_decomp_features_t features
Definition: rohc_decomp_internals.h:148
Definition: rohc_decomp.h:81
bool ROHC_EXPORT rohc_decomp_profile_enabled(const struct rohc_decomp *const decomp, const rohc_profile_t profile)
Is the given decompression profile enabled for a decompressor?
Definition: rohc_decomp.c:3269
unsigned short version_major
Definition: rohc_decomp.h:193
rohc_decomp_state_t context_state
Definition: rohc_decomp.h:132
bool ROHC_EXPORT rohc_decomp_get_context_info(const struct rohc_decomp *const decomp, const rohc_cid_t cid, rohc_decomp_context_info_t *const info)
Get some information about the given decompression context.
Definition: rohc_decomp.c:2539
unsigned short version_major
Definition: rohc_decomp.h:126
unsigned long corrected_sn_wraparounds
Definition: rohc_decomp.h:146
void ROHC_EXPORT rohc_decomp_free(struct rohc_decomp *const decomp)
Destroy the given ROHC decompressor.
Definition: rohc_decomp.c:602
rohc_profile_t
The different ROHC compression/decompression profiles.
Definition: rohc.h:212
bool ROHC_EXPORT rohc_decomp_enable_profile(struct rohc_decomp *const decomp, const rohc_profile_t profile)
Enable a decompression profile for a decompressor.
Definition: rohc_decomp.c:3337
unsigned long nr_misordered_packets
Definition: rohc_decomp.h:138
rohc_packet_t
The different types of ROHC packets.
Definition: rohc_packets.h:49
unsigned short version_minor
Definition: rohc_decomp.h:195
bool ROHC_EXPORT rohc_decomp_get_cid_type(const struct rohc_decomp *const decomp, rohc_cid_type_t *const cid_type)
Get the CID type that the decompressor uses.
Definition: rohc_decomp.c:2707
bool ROHC_EXPORT rohc_decomp_set_mrru(struct rohc_decomp *const decomp, const size_t mrru)
Set the Maximum Reconstructed Reception Unit (MRRU).
Definition: rohc_decomp.c:2802
unsigned long packets_nr
Definition: rohc_decomp.h:197
bool ROHC_EXPORT rohc_decomp_get_prtt(const struct rohc_decomp *const decomp, size_t *const prtt)
Get the number of packets sent during one Round-Trip Time (RTT).
Definition: rohc_decomp.c:2991
unsigned long corrected_crc_failures
Definition: rohc_decomp.h:144
Definition: rohc_decomp.h:77
bool is_duplicated
Definition: rohc_decomp.h:140