Rework about dialog by using gtk_show_about_dialog
[lttv.git] / ltt / trace.h
index e16c66f29f43ca44f5d317322f003788cdcb4488..64c38da4a18c91859efb23f8ed25b0839324327e 100644 (file)
@@ -45,8 +45,10 @@ struct LttTrace {
   double    offset;
   LttTime   start_time;
   LttTime   start_time_from_tsc;
+       gboolean  is_live; /* Flag indicating that read trace is currently being recorded */
+       LttTime live_safe_timestamp; /* In a live trace, timestamp were all data should be readable */
 
-  GData     *tracefiles;                    //tracefiles groups
+       GData     *tracefiles;                    /*tracefiles groups*/
 };
 
 static inline guint ltt_trace_get_num_cpu(LttTrace *t)
@@ -67,6 +69,10 @@ static inline guint ltt_trace_get_num_cpu(LttTrace *t)
 
 LttTrace *ltt_trace_open(const gchar *pathname);
 
+/* Same as ltt_trace_open but open the trace in live mode */
+LttTrace *ltt_trace_open_live(const gchar *pathname);
+
+
 /* copy reopens a trace 
  *
  * return value NULL if error while opening the trace 
@@ -77,7 +83,8 @@ static inline GQuark ltt_trace_name(const LttTrace *t)
 {
   return t->pathname;
 }
-
+/* Update the informations concerning a trace, normally a live one */
+int ltt_trace_update(LttTrace *trace);
 
 void ltt_trace_close(LttTrace *t); 
 
@@ -141,6 +148,9 @@ static inline guint ltt_tracefile_block_number(LttTracefile *tf)
 
 int ltt_tracefile_seek_time(LttTracefile *t, LttTime time);
 
+
+int ltt_tracefile_get_current_position(const LttTracefile *tf,  LttEventPosition *ep);
+
 /* Seek to the first event with position equal or larger to ep */
 
 int ltt_tracefile_seek_position(LttTracefile *t,
This page took 0.023144 seconds and 4 git commands to generate.