Add new XML parser from genevent
[lttv.git] / ltt / branches / poly / ltt / parser.h
index 661207761223ab1094b91aac5ec3932bcc11f561..da5a303da5ab4fdfcd9e3b799aeb4984e02b17be 100644 (file)
@@ -68,8 +68,6 @@ char  seekNextChar(parse_file *in);
 
 void skipComment(parse_file * in);
 void skipEOL(parse_file * in);
-int isalpha(char car);
-int isalnum(char car);
 
 /* Some constants */
 
@@ -81,6 +79,12 @@ static const int BUFFER_SIZE = 1024;
 typedef enum _data_type {
   INT,
   UINT,
+       POINTER,
+       LONG,
+       ULONG,
+       SIZE_T,
+       SSIZE_T,
+       OFF_T,
   FLOAT,
   STRING,
   ENUM,
@@ -91,7 +95,6 @@ typedef enum _data_type {
   NONE
 } data_type;
 
-
 /* Event type descriptors */
 
 typedef struct _type_descriptor {
@@ -100,8 +103,11 @@ typedef struct _type_descriptor {
   char *fmt;
   int size;
   sequence labels; // for enumeration
+       sequence labels_description;
+       int     already_printed;
   sequence fields; // for structure
   struct _type_descriptor *nested_type; // for array and sequence 
+  int alignment;
 } type_descriptor;
 
 
@@ -120,10 +126,13 @@ typedef struct _event {
   char *name;
   char *description;
   type_descriptor *type; 
+  int  per_trace;   /* Is the event able to be logged to a specific trace ? */
+  int  per_tracefile;  /* Must we log this event in a specific tracefile ? */
 } event;
 
 typedef struct _facility {
   char * name;
+       char * capname;
   char * description;
   sequence events;
   sequence unnamed_types;
This page took 0.038304 seconds and 4 git commands to generate.