Statistic viewer
[lttv.git] / ltt / branches / poly / include / lttv / gtkTraceSet.h
index 92ad43e21d69140a627a408d7d79eb9f43d513c3..6dd9ccd4132b40f925daadd16f1f2d1ddcf1c37c 100644 (file)
@@ -13,7 +13,8 @@
 #include <gtk/gtk.h>
 #include <ltt/ltt.h>
 #include <lttv/hook.h>
-#include <lttv/mainWindow.h>
+#include <lttv/common.h>
+#include <lttv/stats.h>
 
 /**
  * Function to register a view constructor so that main window can generate
@@ -24,7 +25,7 @@
  * @param view_constructor constructor of the viewer. 
  */
 
-void ToolbarItemReg(GdkPixmap * pixmap, char *tooltip, void *view_constructor);
+void ToolbarItemReg(char ** pixmap, char *tooltip, lttv_constructor view_constructor);
 
 
 /**
@@ -35,7 +36,7 @@ void ToolbarItemReg(GdkPixmap * pixmap, char *tooltip, void *view_constructor);
  * a reference to find out where the pixmap and tooltip are.
  */
 
-void ToolbarItemUnreg(void *view_constructor);
+void ToolbarItemUnreg(lttv_constructor view_constructor);
 
 
 /**
@@ -47,7 +48,7 @@ void ToolbarItemUnreg(void *view_constructor);
  * @param view_constructor constructor of the viewer. 
  */
 
-void MenuItemReg(char *menu_path, char *menu_text, void *view_constructor);
+void MenuItemReg(char *menu_path, char *menu_text, lttv_constructor view_constructor);
 
 
 /**
@@ -58,7 +59,7 @@ void MenuItemReg(char *menu_path, char *menu_text, void *view_constructor);
  * a reference to find out where the menu_path and menu_text are.
  */
 
-void MenuItemUnreg(void *view_constructor);
+void MenuItemUnreg(lttv_constructor view_constructor);
 
 
 /**
@@ -322,7 +323,8 @@ void SetHPaneDividor(mainWindow *main_win, gint position);
  * @param end the end time of the last event to be processed.
  */
 
-void processTraceset(mainWindow *main_win, LttTime start, LttTime end);
+void processTraceset(mainWindow *main_win, LttTime start, 
+                    LttTime end, unsigned maxNumEvents);
 
 
 /**
@@ -369,3 +371,37 @@ void contextRemoveHooks(mainWindow *main_win ,
                        LttvHooks *after_event);
 
 
+/**
+ * Function to get the life span of the traceset
+ * @param main_win the main window the viewer belongs to.
+ * @param start start time of the traceset.
+ * @param end end time of the traceset.
+ */
+
+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 );
+void stateRemoveEventHooks(mainWindow *main_win );
+
+
+/**
+ * Function to add/remove event hooks for stats 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+void statsAddEventHooks(mainWindow *main_win );
+void statsRemoveEventHooks(mainWindow *main_win );
+
+
+/**
+ * Function to get the stats of the traceset 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+LttvTracesetStats* getTracesetStats(mainWindow *main_win);
This page took 0.023448 seconds and 4 git commands to generate.