Statistic viewer
[lttv.git] / ltt / branches / poly / lttv / modules / gui / API / gtkTraceSet.c
index f5ba86b96a3b91c9846274d1c505115886f862ae..336e1f8b21cdf49bdcf446cd7ca7335548e3565f 100644 (file)
@@ -18,6 +18,9 @@
 #include <lttv/processTrace.h>
 #include <lttv/toolbar.h>
 #include <lttv/menu.h>
+#include <lttv/state.h>
+#include <lttv/stats.h>
+
 
 /**
  * Internal function parts
@@ -675,3 +678,45 @@ void getTracesetTimeSpan(mainWindow *main_win, LttTime * start, LttTime* end)
     }
   }
 }
+
+
+/**
+ * Function to add/remove event hooks for state 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+void stateAddEventHooks(mainWindow *main_win )
+{
+  lttv_state_add_event_hooks((LttvTracesetState*)main_win->traceset_context);
+}
+
+void stateRemoveEventHooks(mainWindow *main_win )
+{
+  lttv_state_remove_event_hooks((LttvTracesetState*)main_win->traceset_context);
+}
+
+
+/**
+ * Function to add/remove event hooks for stats 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+void statsAddEventHooks(mainWindow *main_win )
+{
+  lttv_stats_add_event_hooks((LttvTracesetStats*)main_win->traceset_context);
+}
+
+void statsRemoveEventHooks(mainWindow *main_win )
+{
+  lttv_stats_remove_event_hooks((LttvTracesetStats*)main_win->traceset_context);
+}
+
+/**
+ * Function to get the stats of the traceset 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+LttvTracesetStats* getTracesetStats(mainWindow *main_win)
+{
+  return (LttvTracesetStats*)main_win->traceset_context;
+}
This page took 0.036627 seconds and 4 git commands to generate.