rohc_decomp_set_traces_cb2 − Set the callback function used to manage traces in decompressor.
#include <rohc/rohc_decomp.h>
bool
rohc_decomp_set_traces_cb2(
struct rohc_decomp * decomp,
rohc_trace_callback2_t callback,
void *const priv_ctxt
);
Set the user−defined callback function used to manage traces in the decompressor.
The function will be called by the ROHC library every time it wants to print something related to decompression, from errors to debug. User may thus decide what traces are interesting (filter on level, source entity, or profile) and what to do with them (print on console, storage in file, syslog...).
decomp |
The ROHC decompressor |
callback
Two possible cases:
• The callback function used to manage traces
• NULL to remove the previous callback
priv_ctxt
An optional private context, may be NULL
true on success, false otherwise
The callback can not be modified after library initialization
rohc_decomp.h(3)