ROHC compression/decompression library
Functions
rohc_traces_internal.c File Reference

ROHC for traces. More...

#include "rohc_traces_internal.h"
#include "rohc_buf.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_callback_t trace_cb, const rohc_trace_callback2_t trace_cb2, 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.
void rohc_dump_buf (const rohc_trace_callback_t trace_cb, const rohc_trace_callback2_t trace_cb2, void *const trace_cb_priv, const rohc_trace_entity_t trace_entity, const rohc_trace_level_t trace_level, const char *const descr, const unsigned char *const packet, const size_t length)
 Dump the content of the given buffer.

Detailed Description

ROHC for traces.

Author:
Julien Bernard <julien.bernard@toulouse.viveris.com>
Audric Schiltknecht <audric.schiltknecht@toulouse.viveris.com>
Didier Barvaux <didier@barvaux.org>

Function Documentation

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

Dump the content of the given buffer.

Parameters:
trace_cbThe old function to log traces
trace_cb2The new 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
void rohc_dump_packet ( const rohc_trace_callback_t  trace_cb,
const rohc_trace_callback2_t  trace_cb2,
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 old function to log traces
trace_cb2The new 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