ROHC compression/decompression library
|
ROHC macros and functions for traces. More...
Go to the source code of this file.
Defines | |
#define | rohc_debugf(level, format,...) |
Print information depending on the debug level and prefixed with the function name. | |
#define | rohc_debugf_(level, format,...) |
Print information depending on the debug level. | |
#define | rohc_assert(condition, label, format,...) |
Stop processing if the given condition is false. | |
Functions | |
void ROHC_EXPORT | rohc_dump_packet (const char *const descr, const unsigned char *const packet, const size_t length) __attribute__((nonnull(1 |
ROHC macros and functions for traces.
#define rohc_assert | ( | condition, | |
label, | |||
format, | |||
... | |||
) |
do { \ if(!(condition)) { \ rohc_debugf(0, format "\n", ##__VA_ARGS__); \ assert(condition); \ goto label; \ } \ } while(0)
Stop processing if the given condition is false.
In non-debug mode (ie. NDEBUG set): if the given condition fails, prints the given message then jump to the given label.
In debug mode (ie. NDEBUG not set): if the given condition fails, prints the given message then asserts.
Referenced by code_EXT0_packet(), code_EXT1_packet(), code_EXT2_packet(), code_EXT3_packet(), code_UO1_packet(), code_UO2_packet(), code_UOR2_ID_bytes(), code_UOR2_RTP_bytes(), code_UOR2_TS_bytes(), and decide_extension().
#define rohc_debugf | ( | level, | |
format, | |||
... | |||
) |
rohc_debugf_(level, "%s[%s:%d %s()] " format, \ (level == 0 ? "[ERROR] " : ""), \ __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)
Print information depending on the debug level and prefixed with the function name.
Referenced by c_add_ts(), c_bytesSdvl(), c_create_sc(), c_create_wlsb(), c_deliver_feedback(), c_encodeSdvl(), c_generic_create(), c_generic_encode(), c_generic_feedback(), c_init_header_info(), c_ip_check_context(), c_ip_code_ir_remainder(), c_ip_decide_FO_packet(), c_ip_decide_SO_packet(), c_piggyback_feedback(), c_rtp_check_context(), c_rtp_create(), c_rtp_encode(), c_udp_check_context(), c_udp_create(), c_udp_encode(), c_udp_lite_check_context(), c_udp_lite_create(), c_udp_lite_encode(), change_mode(), change_state(), changed_dynamic_both_hdr(), changed_dynamic_one_hdr(), changed_fields(), changed_static_one_hdr(), code_cid_values(), code_EXT2_packet(), code_EXT3_packet(), code_ipv4_dynamic_part(), code_ipv4_static_part(), code_ipv6_dynamic_part(), code_ipv6_static_part(), code_IR_DYN_packet(), code_IR_packet(), code_packet(), code_UO0_packet(), code_UO1_packet(), code_UO2_packet(), code_uo_remainder(), code_UOR2_bytes(), code_UOR2_ID_bytes(), code_UOR2_RTP_bytes(), code_UOR2_TS_bytes(), context_create(), d_change_mode_feedback(), d_decode_header(), d_generic_create(), d_generic_decode(), d_ip_create(), d_optimistic_feedback(), d_record_ts_stride(), d_rtp_create(), d_sdvalue_size(), d_udp_create(), d_udp_lite_create(), d_udp_lite_decode(), decide_extension(), decide_state(), f_append_cid(), f_feedback2(), f_wrap_feedback(), header_fields(), header_flags(), ip_create(), ip_detect_packet_type(), ip_get_inner_packet(), ip_parse_dynamic_ip(), list_add_at_beginning(), list_add_at_end(), list_add_at_index(), list_create(), list_empty(), list_type_is_present(), periodic_down_transition(), rohc_activate_profile(), rohc_alloc_compressor(), rohc_alloc_decompressor(), rohc_comp_get_last_packet_info(), rohc_comp_set_periodic_refreshes(), rohc_comp_set_wlsb_window_width(), rohc_compress(), rohc_decomp_set_cid_type(), rohc_decomp_set_max_cid(), rohc_decompress(), rohc_dump_packet(), rohc_feedback_flush(), rohc_free_compressor(), rohc_free_decompressor(), rtp_changed_rtp_dynamic(), rtp_code_dynamic_rtp_part(), rtp_code_static_rtp_part(), rtp_decide_state(), rtp_header_flags_and_fields(), sdvl_decode(), ts_decode_scaled(), ts_decode_unscaled(), ts_deduce_from_sn(), ts_update_context(), udp_code_dynamic_udp_part(), udp_code_static_udp_part(), udp_code_uo_remainder(), udp_decide_state(), udp_lite_build_cce_packet(), udp_lite_code_dynamic_udp_lite_part(), udp_lite_code_uo_remainder(), udp_lite_init_cc(), udp_lite_send_cce_packet(), and udp_parse_static_udp().
#define rohc_debugf_ | ( | level, | |
format, | |||
... | |||
) |
do { \ if((level) <= ROHC_DEBUG_LEVEL) { \ printf(format, ##__VA_ARGS__); \ } \ } while(0)
Print information depending on the debug level.
Referenced by code_cid_values(), and rohc_dump_packet().
void ROHC_EXPORT rohc_dump_packet | ( | const char *const | descr, |
const unsigned char *const | packet, | ||
const size_t | length | ||
) |