X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2FgtkTraceSet.h;h=f1df34367030be6f26bb4f7d13942d869f43ce7d;hb=41a769851adc36c024821e859ed6569409f71d8f;hp=5454758e5f9f11bfb8be92b793e423a1531d5d47;hpb=f7afe191fd58f0bf4bab9c9514c261535b99d32b;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/gtkTraceSet.h b/ltt/branches/poly/include/lttv/gtkTraceSet.h index 5454758e..f1df3436 100644 --- a/ltt/branches/poly/include/lttv/gtkTraceSet.h +++ b/ltt/branches/poly/include/lttv/gtkTraceSet.h @@ -15,7 +15,6 @@ #include #include #include -#include /** * Function to register a view constructor so that main window can generate @@ -26,7 +25,7 @@ * @param view_constructor constructor of the viewer. */ -void ToolbarItemReg(char ** pixmap, char *tooltip, lttv_constructor view_constructor); +void toolbar_item_reg(char ** pixmap, char *tooltip, lttv_constructor view_constructor); /** @@ -37,7 +36,7 @@ void ToolbarItemReg(char ** pixmap, char *tooltip, lttv_constructor view_constru * a reference to find out where the pixmap and tooltip are. */ -void ToolbarItemUnreg(lttv_constructor view_constructor); +void toolbar_item_unreg(lttv_constructor view_constructor); /** @@ -49,7 +48,7 @@ void ToolbarItemUnreg(lttv_constructor view_constructor); * @param view_constructor constructor of the viewer. */ -void MenuItemReg(char *menu_path, char *menu_text, lttv_constructor view_constructor); +void menu_item_reg(char *menu_path, char *menu_text, lttv_constructor view_constructor); /** @@ -60,32 +59,7 @@ void MenuItemReg(char *menu_path, char *menu_text, lttv_constructor view_constru * a reference to find out where the menu_path and menu_text are. */ -void MenuItemUnreg(lttv_constructor view_constructor); - - -/** - * Attach a viewer to the current tab. - * It will be called in the constructor of the viewer. - * @param main_win the main window the viewer belongs to. - * @param viewer viewer to be attached to the current tab - */ - -// Not Needed : Main window add widget returned by constructor -//void AttachViewer(mainWindow *main_win, GtkWidget *viewer); - - -/* ?? Maybe we do not need this function, when a widget is destroyed, - * it will be removed automatically from its container - */ -// Not needed -/** - * Detach a viewer from the current tab. - * It will be called in the destructor of the viewer. - * @param main_win the main window the viewer belongs to. - * @param viewer viewer to be detached from the current tab. - */ - -//void DetachViewer(mainWindow *main_win, GtkWidget *viewer); +void menu_item_unreg(lttv_constructor view_constructor); /** @@ -94,7 +68,7 @@ void MenuItemUnreg(lttv_constructor view_constructor); * @param info the message which will be shown in the status bar. */ -void UpdateStatus(mainWindow *main_win, char *info); +void update_status(MainWindow *main_win, char *info); /** @@ -106,7 +80,7 @@ void UpdateStatus(mainWindow *main_win, char *info); * @param time_interval a pointer where time interval will be stored. */ -void GetTimeWindow(mainWindow *main_win, TimeWindow *Time_Window); +void get_time_window(MainWindow *main_win, TimeWindow *time_window); /** @@ -117,12 +91,7 @@ void GetTimeWindow(mainWindow *main_win, TimeWindow *Time_Window); * @param time_interval a pointer where time interval is stored. */ -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); +void set_time_window(MainWindow *main_win, TimeWindow *time_window); /** * Function to get the current time/event of the current tab. @@ -132,7 +101,7 @@ void GetTracesetTimeSpan(mainWindow *main_win, TimeInterval *Time_Interval); * @param time a pointer where time will be stored. */ -void GetCurrentTime(mainWindow *main_win, LttTime *time); +void get_current_time(MainWindow *main_win, LttTime *time); /** @@ -143,7 +112,7 @@ void GetCurrentTime(mainWindow *main_win, LttTime *time); * @param time a pointer where time is stored. */ -void SetCurrentTime(mainWindow *main_win, LttTime *time); +void set_current_time(MainWindow *main_win, LttTime *time); /** @@ -154,7 +123,7 @@ void SetCurrentTime(mainWindow *main_win, LttTime *time); * @param traceset a pointer to a traceset. */ -//void GetTraceset(mainWindow *main_win, Traceset *traceset); +//void get_traceset(MainWindow *main_win, Traceset *traceset); /** @@ -165,7 +134,7 @@ void SetCurrentTime(mainWindow *main_win, LttTime *time); * @param filter, a pointer to a filter. */ -//void GetFilter(mainWindow *main_win, Filter *filter); +//void get_filter(MainWindow *main_win, Filter *filter); /** @@ -177,8 +146,8 @@ void SetCurrentTime(mainWindow *main_win, LttTime *time); * @param main_win the main window the viewer belongs to. */ -void RegUpdateTimeInterval(LttvHook hook, gpointer hook_data, - mainWindow * main_win); +void reg_update_time_window(LttvHook hook, gpointer hook_data, + MainWindow * main_win); /** @@ -190,8 +159,8 @@ void RegUpdateTimeInterval(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void UnregUpdateTimeInterval(LttvHook hook, gpointer hook_data, - mainWindow * main_win); +void unreg_update_time_window(LttvHook hook, gpointer hook_data, + MainWindow * main_win); /** @@ -203,8 +172,8 @@ void UnregUpdateTimeInterval(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void RegUpdateTraceset(LttvHook hook, gpointer hook_data, - mainWindow * main_win); +void reg_update_traceset(LttvHook hook, gpointer hook_data, + MainWindow * main_win); /** @@ -216,8 +185,8 @@ void RegUpdateTraceset(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void UnregUpdateTraceset(LttvHook hook, gpointer hook_data, - mainWindow * main_win); +void unreg_update_traceset(LttvHook hook, gpointer hook_data, + MainWindow * main_win); /** @@ -229,8 +198,8 @@ void UnregUpdateTraceset(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void RegUpdateFilter(LttvHook hook, gpointer hook_data, - mainWindow *main_win); +void reg_update_filter(LttvHook hook, gpointer hook_data, + MainWindow *main_win); /** @@ -242,8 +211,8 @@ void RegUpdateFilter(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void UnregUpdateFilter(LttvHook hook, gpointer hook_data, - mainWindow * main_win); +void unreg_update_filter(LttvHook hook, gpointer hook_data, + MainWindow * main_win); /** @@ -255,8 +224,8 @@ void UnregUpdateFilter(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void RegUpdateCurrentTime(LttvHook hook, gpointer hook_data, - mainWindow *main_win); +void reg_update_current_time(LttvHook hook, gpointer hook_data, + MainWindow *main_win); /** @@ -268,8 +237,8 @@ void RegUpdateCurrentTime(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void UnregUpdateCurrentTime(LttvHook hook, gpointer hook_data, - mainWindow * main_win); +void unreg_update_current_time(LttvHook hook, gpointer hook_data, + MainWindow * main_win); /** @@ -280,7 +249,7 @@ void UnregUpdateCurrentTime(LttvHook hook, gpointer hook_data, * @param paned a pointer to a pane where the viewer is contained. */ -void SetFocusedPane(mainWindow *main_win, gpointer paned); +void set_focused_pane(MainWindow *main_win, gpointer paned); /** @@ -292,8 +261,8 @@ void SetFocusedPane(mainWindow *main_win, gpointer paned); * @param main_win the main window the viewer belongs to. */ -void RegUpdateDividor(LttvHook hook, gpointer hook_data, - mainWindow *main_win); +void reg_update_dividor(LttvHook hook, gpointer hook_data, + MainWindow *main_win); /** @@ -305,8 +274,8 @@ void RegUpdateDividor(LttvHook hook, gpointer hook_data, * @param main_win the main window the viewer belongs to. */ -void UnregUpdateDividor(LttvHook hook, gpointer hook_data, - mainWindow *main_win); +void unreg_update_dividor(LttvHook hook, gpointer hook_data, + MainWindow *main_win); /** @@ -317,7 +286,7 @@ void UnregUpdateDividor(LttvHook hook, gpointer hook_data, * @param position position of the hpane's dividor. */ -void SetHPaneDividor(mainWindow *main_win, gint position); +void set_hpane_dividor(MainWindow *main_win, gint position); /** @@ -328,8 +297,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, unsigned maxNumEvents); +void process_traceset_api(MainWindow *main_win, LttTime start, + LttTime end, unsigned maxNumEvents); /** @@ -340,18 +309,18 @@ void processTraceset(mainWindow *main_win, LttTime start, * @param LttvHooks hooks to be registered. */ -void contextAddHooks(mainWindow *main_win , - LttvHooks *before_traceset, - LttvHooks *after_traceset, - LttvHooks *check_trace, - LttvHooks *before_trace, - LttvHooks *after_trace, - LttvHooks *check_tracefile, - LttvHooks *before_tracefile, - LttvHooks *after_tracefile, - LttvHooks *check_event, - LttvHooks *before_event, - LttvHooks *after_event); +void context_add_hooks_api(MainWindow *main_win , + LttvHooks *before_traceset, + LttvHooks *after_traceset, + LttvHooks *check_trace, + LttvHooks *before_trace, + LttvHooks *after_trace, + LttvHooks *check_tracefile, + LttvHooks *before_tracefile, + LttvHooks *after_tracefile, + LttvHooks *check_event, + LttvHooks *before_event, + LttvHooks *after_event); /** @@ -362,18 +331,18 @@ void contextAddHooks(mainWindow *main_win , * @param LttvHooks hooks to be registered. */ -void contextRemoveHooks(mainWindow *main_win , - LttvHooks *before_traceset, - LttvHooks *after_traceset, - LttvHooks *check_trace, - LttvHooks *before_trace, - LttvHooks *after_trace, - LttvHooks *check_tracefile, - LttvHooks *before_tracefile, - LttvHooks *after_tracefile, - LttvHooks *check_event, - LttvHooks *before_event, - LttvHooks *after_event); +void context_remove_hooks_api(MainWindow *main_win , + LttvHooks *before_traceset, + LttvHooks *after_traceset, + LttvHooks *check_trace, + LttvHooks *before_trace, + LttvHooks *after_trace, + LttvHooks *check_tracefile, + LttvHooks *before_tracefile, + LttvHooks *after_tracefile, + LttvHooks *check_event, + LttvHooks *before_event, + LttvHooks *after_event); /** @@ -383,7 +352,7 @@ void contextRemoveHooks(mainWindow *main_win , * @param end end time of the traceset. */ -void getTracesetTimeSpan(mainWindow *main_win, TimeInterval *time_span); +void get_traceset_time_span(MainWindow *main_win, TimeInterval *time_span); /** @@ -391,8 +360,8 @@ void getTracesetTimeSpan(mainWindow *main_win, TimeInterval *time_span); * @param main_win the main window the viewer belongs to. */ -void stateAddEventHooks(mainWindow *main_win ); -void stateRemoveEventHooks(mainWindow *main_win ); +void state_add_event_hooks_api(MainWindow *main_win ); +void state_remove_event_hooks_api(MainWindow *main_win ); /** @@ -400,8 +369,8 @@ void stateRemoveEventHooks(mainWindow *main_win ); * @param main_win the main window the viewer belongs to. */ -void statsAddEventHooks(mainWindow *main_win ); -void statsRemoveEventHooks(mainWindow *main_win ); +void stats_add_event_hooks_api(MainWindow *main_win ); +void stats_remove_event_hooks_api(MainWindow *main_win ); /** @@ -409,4 +378,4 @@ void statsRemoveEventHooks(mainWindow *main_win ); * @param main_win the main window the viewer belongs to. */ -LttvTracesetStats* getTracesetStats(mainWindow *main_win); +LttvTracesetStats* get_traceset_stats_api(MainWindow *main_win);