some compile fix
[lttv.git] / ltt / branches / poly / ltt / ltt.h
index 081d12ca59bdbb4f073f1d7d82874023ab2bb069..423d7cd276729fbc456e1b171fb2ba37c752d53c 100644 (file)
@@ -1,5 +1,6 @@
 /* This file is part of the Linux Trace Toolkit trace reading library
  * Copyright (C) 2003-2004 Michel Dagenais
+ *               2005 Mathieu Desnoyers
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
    associated to the trace. */
    
 #define NUM_FACILITIES 256
+#define FACILITIES_BITS 8
+#define AVG_EVENTS_PER_FACILITIES 10
 
-typedef struct _LttTrace LttTrace;
+typedef struct LttTrace LttTrace;
 
-typedef struct _LttTracefile LttTracefile;
+typedef struct LttTracefile LttTracefile;
 
-typedef struct _LttFacility LttFacility;
-
-typedef struct _LttEventType LttEventType;
-
-typedef struct _LttType LttType;
-
-typedef struct _LttField LttField;
-
-typedef struct _LttEvent LttEvent;
-
-typedef struct _LttSystemDescription LttSystemDescription;
+typedef struct LttSystemDescription LttSystemDescription;
 
+typedef struct LttEvent LttEvent;
 
 /* Checksums are used to differentiate facilities which have the same name
    but differ. */
@@ -107,11 +101,10 @@ typedef struct _TimeInterval{
 
 typedef guint64 LttCycleCount;
 
-
 /* Event positions are used to seek within a tracefile based on
    the block number and event position within the block. */
 
-typedef struct _LttEventPosition LttEventPosition;
+typedef struct LttEventPosition LttEventPosition;
 
 
 /* Differences between architectures include word sizes, endianess,
@@ -129,10 +122,46 @@ typedef enum _LttArchEndian
 } LttArchEndian;
 
 typedef enum _LttTypeEnum 
-{ LTT_INT, LTT_UINT, LTT_POINTER, LTT_LONG, LTT_ULONG, LTT_SIZE_T, 
-  LTT_SSIZE_T, LTT_OFF_T, LTT_FLOAT, LTT_STRING, LTT_ENUM, LTT_ARRAY, 
-  LTT_SEQUENCE, LTT_STRUCT, LTT_UNION
+{ LTT_INT_FIXED,
+  LTT_UINT_FIXED,
+  LTT_POINTER,
+  LTT_CHAR,
+  LTT_UCHAR,
+  LTT_SHORT,
+  LTT_USHORT,
+  LTT_INT,
+  LTT_UINT,
+  LTT_LONG,
+  LTT_ULONG,
+  LTT_SIZE_T,
+  LTT_SSIZE_T,
+  LTT_OFF_T,
+  LTT_FLOAT,
+  LTT_STRING,
+  LTT_ENUM,
+  LTT_ARRAY,
+  LTT_SEQUENCE,
+  LTT_STRUCT,
+  LTT_UNION,
+  LTT_NONE
 } LttTypeEnum;
+
+/* Architecture types */
+#define LTT_ARCH_TYPE_I386          1
+#define LTT_ARCH_TYPE_PPC           2
+#define LTT_ARCH_TYPE_SH            3
+#define LTT_ARCH_TYPE_S390          4
+#define LTT_ARCH_TYPE_MIPS          5
+#define LTT_ARCH_TYPE_ARM           6
+#define LTT_ARCH_TYPE_PPC64         7
+#define LTT_ARCH_TYPE_X86_64        8
+#define LTT_ARCH_TYPE_C2            9
+#define LTT_ARCH_TYPE_POWERPC       10
+
+/* Standard definitions for variants */
+#define LTT_ARCH_VARIANT_NONE       0  /* Main architecture implementation */
+
 
 
 #endif // LTT_H
This page took 0.023946 seconds and 4 git commands to generate.