event.{c,h}: restore field access functions
[lttv.git] / ltt / branches / poly / ltt / event.h
index b45595d9150c2bb4194f6317fc6c28509720aec5..3bb05a90b1ed0a9664785b3525369460b1a98815 100644 (file)
@@ -7,6 +7,7 @@
 #include <sys/types.h>
 #include <ltt/ltt.h>
 #include <endian.h>
+#include <ltt/markers.h>
 
 /*
  * Structure LttEvent and LttEventPosition must begin with the _exact_ same
@@ -82,4 +83,25 @@ void ltt_event_position_copy(LttEventPosition *dest,
 
 LttTracefile *ltt_event_position_tracefile(LttEventPosition *ep);
 
+/* These functions extract data from an event after architecture specific
+ *    conversions. */
+
+guint32 ltt_event_get_unsigned(LttEvent *e, struct marker_field *f);
+
+gint32 ltt_event_get_int(LttEvent *e, struct marker_field *f);
+
+guint64 ltt_event_get_long_unsigned(LttEvent *e, struct marker_field *f);
+
+gint64 ltt_event_get_long_int(LttEvent *e, struct marker_field *f);
+
+float ltt_event_get_float(LttEvent *e, struct marker_field *f);
+
+double ltt_event_get_double(LttEvent *e, struct marker_field *f);
+
+
+/* The string obtained is only valid until the next read from
+ *    the same tracefile. */
+
+gchar *ltt_event_get_string(LttEvent *e, struct marker_field *f);
+
 #endif //_LTT_EVENT_H
This page took 0.023421 seconds and 4 git commands to generate.