X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2FgtkTraceSet.h;h=aec6c598c8248f380a09417d904a532b78fa86b7;hb=68b48a457c0575bf1b126b03923dc78dc368f98f;hp=2cc493b72b25522bb09063f56a271419a0aff013;hpb=9af25d1f2cecede9adb53d2041a1d2792e1fdaa7;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/gtkTraceSet.h b/ltt/branches/poly/include/lttv/gtkTraceSet.h index 2cc493b7..aec6c598 100644 --- a/ltt/branches/poly/include/lttv/gtkTraceSet.h +++ b/ltt/branches/poly/include/lttv/gtkTraceSet.h @@ -14,6 +14,7 @@ #include #include #include +#include /** * 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); /** @@ -96,15 +97,15 @@ void UpdateStatus(mainWindow *main_win, char *info); /** - * Function to get the current time interval of the current tab. + * Function to get the current time window of the current tab. * It will be called by a viewer's hook function to update the - * time interval of the viewer and also be called by the constructor + * time window of the viewer and also be called by the constructor * of the viewer. * @param main_win the main window the viewer belongs to. * @param time_interval a pointer where time interval will be stored. */ -void GetTimeInterval(mainWindow *main_win, TimeInterval *time_interval); +void GetTimeWindow(mainWindow *main_win, TimeWindow *Time_Window); /** @@ -115,8 +116,12 @@ void GetTimeInterval(mainWindow *main_win, TimeInterval *time_interval); * @param time_interval a pointer where time interval is stored. */ -void SetTimeInterval(mainWindow *main_win, TimeInterval *time_interval); +void SetTimeWindow(mainWindow *main_win, TimeWindow *Time_Window); +/** + * Function to get the time span of the main window's traceset. + */ +void GetTracesetTimeSpan(mainWindow *main_win, TimeInterval *Time_Interval); /** * Function to get the current time/event of the current tab. @@ -166,7 +171,7 @@ void SetCurrentTime(mainWindow *main_win, LttTime *time); * Function to register a hook function for a viewer to set/update its * time interval. * It will be called by the constructor of the viewer. - * @param hook hook function of the viewer. + * @param hook hook function of the viewer. Takes a TimeInterval* as call_data. * @param hook_data hook data associated with the hook function. * @param main_win the main window the viewer belongs to. */ @@ -179,7 +184,7 @@ void RegUpdateTimeInterval(LttvHook hook, gpointer hook_data, * Function to unregister a viewer's hook function which is used to * set/update the time interval of the viewer. * It will be called by the destructor of the viewer. - * @param hook hook function of the viewer. + * @param hook hook function of the viewer. Takes a TimeInterval as call_data. * @param hook_data hook data associated with the hook function. * @param main_win the main window the viewer belongs to. */ @@ -322,7 +327,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 +375,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, TimeInterval *time_span); + + +/** + * 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);