rohc_decomp_set_traces_cb2

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
RETURN VALUE
NOTES
SEE ALSO

NAME

rohc_decomp_set_traces_cb2 − Set the callback function used to manage traces in decompressor.

SYNOPSIS

#include <rohc/rohc_decomp.h>

bool rohc_decomp_set_traces_cb2(
struct rohc_decomp * decomp
,
rohc_trace_callback2_t callback
,
void *const priv_ctxt

);

DESCRIPTION

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

PARAMETERS

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

STRUCTURES

RETURN VALUE

true on success, false otherwise

NOTES

The callback can not be modified after library initialization

SEE ALSO

rohc_decomp.h(3)