libltt compiles
[lttv.git] / ltt / branches / poly / ltt / event.h
index a7408b4d3a863934e8a7c7bdf91f17f709113be4..79ceed5288df68e1dd00974deeceb3f35b3c1611 100644 (file)
@@ -1,5 +1,6 @@
 /* This file is part of the Linux Trace Toolkit trace reading library
  * Copyright (C) 2003-2004 Michel Dagenais
+ *               2006 Mathieu Desnoyers
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -22,6 +23,7 @@
 #include <glib.h>
 #include <ltt/ltt.h>
 #include <sys/types.h>
+#include <ltt/markers.h>
 
 LttEvent *ltt_event_new();
 
@@ -35,22 +37,12 @@ void ltt_event_destroy(LttEvent *event);
 /* Obtain the trace unique integer id associated with the type of 
    this event */
 
-unsigned ltt_event_eventtype_id(const LttEvent *e);
+uint16_t ltt_event_eventtype_id(const LttEvent *e);
 
-unsigned ltt_event_facility_id(const LttEvent *e);
-
-/* Facility and type for the event */
-
-LttFacility *ltt_event_facility(const LttEvent *e);
+struct marker_info *ltt_event_marker(const LttEvent *e);
 
 LttEventType *ltt_event_eventtype(const LttEvent *e);
 
-
-/* Root field for the event */
-
-LttField *ltt_event_field(LttEvent *e);
-
-
 /* Time and cycle count for the event */
 
 LttTime ltt_event_time(const LttEvent *e);
@@ -72,6 +64,9 @@ LttEventPosition * ltt_event_position_new();
 void ltt_event_position_get(LttEventPosition *ep, LttTracefile **tf,
         guint *block, guint *offset, guint64 *tsc);
 
+void ltt_event_position_set(LttEventPosition *ep, LttTracefile *tf,
+        guint block, guint offset, guint64 tsc);
+
 gint ltt_event_position_compare(const LttEventPosition *ep1,
                                 const LttEventPosition *ep2);
 
@@ -100,8 +95,9 @@ guint64 ltt_event_field_element_number(LttEvent *e, LttField *f);
 
 /* Set the currently selected element for a sequence or array field. */
 
-void ltt_event_field_element_select(LttEvent *e, LttField *f, unsigned i);
+LttField *ltt_event_field_element_select(LttEvent *e, LttField *f, gulong i);
 
+off_t ltt_event_field_offset(LttEvent *e, LttField *f);
 
 /* A union is like a structure except that only a single member at a time
    is present depending on the specific event instance. This function tells
@@ -131,11 +127,7 @@ double ltt_event_get_double(LttEvent *e, LttField *f);
 
 gchar *ltt_event_get_string(LttEvent *e, LttField *f);
 
-size_t get_field_type_size(LttTracefile *tf,
-    LttEventType *event_type,
-    off_t offset_root, off_t offset_parent,
-    LttField *field, void *data);
-
-
+void compute_offsets(LttTracefile *tf, LttFacility *fac,
+    LttEventType *event, off_t *offset, void *root);
 
 #endif // EVENT_H
This page took 0.024329 seconds and 4 git commands to generate.