ROHC compression/decompression library
Functions
rohc_traces_internal.c File Reference

ROHC for traces. More...

#include "rohc_traces_internal.h"
#include "rohc_utils.h"
#include <stdio.h>
#include <assert.h>
Include dependency graph for rohc_traces_internal.c:

Functions

void rohc_dump_packet (const rohc_trace_callback2_t trace_cb, void *const trace_cb_priv, const rohc_trace_entity_t trace_entity, const rohc_trace_level_t trace_level, const char *const descr, const struct rohc_buf packet)
 Dump the content of the given packet. More...
 
void rohc_dump_buf (const rohc_trace_callback2_t trace_cb, void *const trace_cb_priv, const rohc_trace_entity_t trace_entity, const rohc_trace_level_t trace_level, const char *const descr, const uint8_t *const packet, const size_t length)
 Dump the content of the given buffer. More...
 

Detailed Description

ROHC for traces.

Author
Julien Bernard julie.nosp@m.n.be.nosp@m.rnard.nosp@m.@tou.nosp@m.louse.nosp@m..viv.nosp@m.eris..nosp@m.com
Audric Schiltknecht audri.nosp@m.c.sc.nosp@m.hiltk.nosp@m.nech.nosp@m.t@tou.nosp@m.lous.nosp@m.e.viv.nosp@m.eris.nosp@m..com
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Function Documentation

◆ rohc_dump_buf()

void rohc_dump_buf ( const rohc_trace_callback2_t  trace_cb,
void *const  trace_cb_priv,
const rohc_trace_entity_t  trace_entity,
const rohc_trace_level_t  trace_level,
const char *const  descr,
const uint8_t *const  packet,
const size_t  length 
)

Dump the content of the given buffer.

Parameters
trace_cbThe function to log traces
trace_cb_privAn optional private context, may be NULL
trace_entityThe entity that emits the traces
trace_levelThe priority level for the trace
descrThe description of the packet to dump
packetThe packet to dump
lengthThe length (in bytes) of the packet to dump

◆ rohc_dump_packet()

void rohc_dump_packet ( const rohc_trace_callback2_t  trace_cb,
void *const  trace_cb_priv,
const rohc_trace_entity_t  trace_entity,
const rohc_trace_level_t  trace_level,
const char *const  descr,
const struct rohc_buf  packet 
)

Dump the content of the given packet.

Parameters
trace_cbThe function to log traces
trace_cb_privAn optional private context, may be NULL
trace_entityThe entity that emits the traces
trace_levelThe priority level for the trace
descrThe description of the packet to dump
packetThe packet to dump