X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.h;h=9ec829364642d90ea39e4bb7ade173dd16c332b3;hb=b052368a0d53ff62ed9110fbafdb857a2b034ca8;hp=83a67d0219d2b191b6db15b8ced8d340d976545f;hpb=a1a2b6492b9e18506e9429b71a90fcfff9da7f99;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index 83a67d02..9ec82936 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -400,6 +400,60 @@ void lttvwindow_unregister_traceset_notify(Tab *tab, gpointer hook_data); +/** + * Function to register a hook function for a viewer be completely redrawn. + * + * @param tab viewer's tab + * @param hook hook function of the viewer. + * @param hook_data hook data associated with the hook function. + */ + +void lttvwindow_register_redraw_notify(Tab *tab, + LttvHook hook, gpointer hook_data); + +/** + * Function to unregister a hook function for a viewer be completely redrawn. + * + * @param tab viewer's tab + * @param hook hook function of the viewer. + * @param hook_data hook data associated with the hook function. + */ + +void lttvwindow_unregister_redraw_notify(Tab *tab, + LttvHook hook, gpointer hook_data); + + +/** + * Function to register a hook function for a viewer to re-do the events + * requests for the needed interval. + * + * This action is typically done after a "stop". + * + * The typical hook will remove all current requests for the viewer + * and make requests for missing information. + * + * @param tab viewer's tab + * @param hook hook function of the viewer. + * @param hook_data hook data associated with the hook function. + */ + +void lttvwindow_register_continue_notify(Tab *tab, + LttvHook hook, gpointer hook_data); + + +/** + * Function to unregister a hook function for a viewer to re-do the events + * requests for the needed interval. + * + * @param tab viewer's tab + * @param hook hook function of the viewer. + * @param hook_data hook data associated with the hook function. + */ + +void lttvwindow_unregister_continue_notify(Tab *tab, + LttvHook hook, gpointer hook_data); + + /** * Function to register a hook function for a viewer to set/update its * filter. @@ -508,17 +562,6 @@ void lttvwindow_unregister_dividor(Tab *tab, -/** - * This method reports the information to show on the status bar in the - * main window. - * - * @param tab the tab the viewer belongs to. - * @param info the message which will be shown in the status bar. - */ - -void lttvwindow_report_status(Tab *tab, const char *info); - - /** * Function to set the time interval of the current tab.a * @@ -590,7 +633,7 @@ typedef struct _EventsRequest { } EventsRequest; /* Maximum number of events to proceed at once in a chunk */ -#define CHUNK_NUM_EVENTS 50000 +#define CHUNK_NUM_EVENTS 200 /** @@ -635,20 +678,20 @@ void lttvwindow_events_request_remove_all(Tab *tab, * Function to get the current time window of the current tab. * * @param tab the tab the viewer belongs to. - * @return a pointer to the current tab's time interval. + * @return the current tab's time interval. */ -const TimeWindow *lttvwindow_get_time_window(Tab *tab); +TimeWindow lttvwindow_get_time_window(Tab *tab); /** * Function to get the current time of the current tab. * * @param tab the tab the viewer belongs to. - * @return a pointer to the current tab's current time. + * @return the current tab's current time. */ -const LttTime *lttvwindow_get_current_time(Tab *tab); +LttTime lttvwindow_get_current_time(Tab *tab); /**