1 /*****************************************************************************\
3 ** Linux Call Router **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg **
8 ** trace header file **
10 \*****************************************************************************/
12 struct trace_element {
18 #define MAX_NESTED_TRACES 1
20 #define MAX_TRACE_ELEMENTS 32
28 unsigned long sec, usec;
36 struct trace_element element[MAX_TRACE_ELEMENTS];
40 #define CATEGORY_L1 0x01
41 #define CATEGORY_L2 0x02
42 #define CATEGORY_L3 0x04
43 #define CATEGORY_CH 0x08
44 #define CATEGORY_EP 0x10
45 #define CATEGORY_AP 0x20
46 #define CATEGORY_RO 0x40
49 void start_trace(int port, char *interface, char *caller, char *dialing, int direction, char *category, char *name);
50 void add_trace(char *name, char *sub, char *value);
52 //char *print_trace(int port, char *interface, char *caller, char *dialing, int direction, char *category, char *name);