backup
[lcr.git] / trace.h
diff --git a/trace.h b/trace.h
index 073fc9a..e7012e0 100644 (file)
--- a/trace.h
+++ b/trace.h
@@ -15,8 +15,6 @@ struct trace_element {
        char value[64];
 };
 
-#define MAX_NESTED_TRACES      1
-
 #define MAX_TRACE_ELEMENTS     32
 struct trace {
        /* header */
@@ -28,7 +26,8 @@ struct trace {
        unsigned long sec, usec;
        
        /* type */
-       char category[32];
+       char category[4];
+       int serial;
        char name[64];
 
        /* elements */
@@ -37,13 +36,9 @@ struct trace {
 };
 
 
-#define        CATEGORY_L1     0x01
-#define        CATEGORY_L2     0x02
-#define        CATEGORY_L3     0x04
-#define        CATEGORY_CH     0x08
-#define        CATEGORY_EP     0x10
-#define        CATEGORY_AP     0x20
-#define        CATEGORY_RO     0x40
+
+#define        CATEGORY_CH     0x01
+#define        CATEGORY_EP     0x02
 
 
 void start_trace(int port, char *interface, char *caller, char *dialing, int direction, char *category, char *name);