#include <gtk/gtk.h>
typedef struct _MainWindow MainWindow;
-//typedef struct _systemView systemView;
typedef struct _Tab Tab;
/* constructor of the viewer */
* @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);
/**
* 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);
/**
* @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);
/**
* 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);
/**
* @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);
/**
* @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);
/**
* @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.
* @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);
/**
* @param time a pointer where time is stored.
*/
-void SetCurrentTime(MainWindow *main_win, LttTime *time);
+void set_current_time(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);
/**
* @param filter, a pointer to a filter.
*/
-//void GetFilter(MainWindow *main_win, Filter *filter);
+//void get_filter(MainWindow *main_win, Filter *filter);
/**
* @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);
/**
* @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);
/**
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateTraceset(LttvHook hook, gpointer hook_data,
+void reg_update_traceset(LttvHook hook, gpointer hook_data,
MainWindow * main_win);
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateTraceset(LttvHook hook, gpointer hook_data,
+void unreg_update_traceset(LttvHook hook, gpointer hook_data,
MainWindow * main_win);
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateFilter(LttvHook hook, gpointer hook_data,
+void reg_update_filter(LttvHook hook, gpointer hook_data,
MainWindow *main_win);
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateFilter(LttvHook hook, gpointer hook_data,
+void unreg_update_filter(LttvHook hook, gpointer hook_data,
MainWindow * main_win);
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateCurrentTime(LttvHook hook, gpointer hook_data,
+void reg_update_current_time(LttvHook hook, gpointer hook_data,
MainWindow *main_win);
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateCurrentTime(LttvHook hook, gpointer hook_data,
+void unreg_update_current_time(LttvHook hook, gpointer hook_data,
MainWindow * main_win);
* @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);
/**
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateDividor(LttvHook hook, gpointer hook_data,
+void reg_update_dividor(LttvHook hook, gpointer hook_data,
MainWindow *main_win);
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateDividor(LttvHook hook, gpointer hook_data,
+void unreg_update_dividor(LttvHook hook, gpointer hook_data,
MainWindow *main_win);
* @param position position of the hpane's dividor.
*/
-void SetHPaneDividor(MainWindow *main_win, gint position);
+void set_hpane_dividor(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);
/**
* @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);
/**
* @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);
/**
* @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);
/**
* @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 );
/**
* @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 );
/**
* @param main_win the main window the viewer belongs to.
*/
-LttvTracesetStats* getTracesetStats(MainWindow *main_win);
+LttvTracesetStats* get_traceset_stats_api(MainWindow *main_win);
* @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)
{
LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
LttvToolbars * toolbar;
* 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)
{
LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
LttvToolbars * toolbar;
* @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)
{
LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
LttvMenus * menu;
* a reference to find out where the menu_path and menu_text are.
*/
-void MenuItemUnreg(lttv_constructor view_constructor)
+void menu_item_unreg(lttv_constructor view_constructor)
{
LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
LttvMenus * menu;
* @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)
{
}
* @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)
{
//time_window->start_time = main_win->current_tab->time_window.start_time;
//time_window->time_width = main_win->current_tab->time_window.time_width;
* @param time_interval a pointer where time interval will be stored.
*/
-void getTracesetTimeSpan(MainWindow *main_win, TimeInterval *time_interval)
+void get_traceset_time_span(MainWindow *main_win, TimeInterval *time_interval)
{
//time_window->start_time = main_win->current_tab->time_window.start_time;
//time_window->time_width = main_win->current_tab->time_window.time_width;
* @param time_interval a pointer where time interval is stored.
*/
-void SetTimeWindow(MainWindow *main_win, TimeWindow *time_window)
+void set_time_window(MainWindow *main_win, TimeWindow *time_window)
{
LttvAttributeValue value;
LttvHooks * tmp;
* @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)
{
time = &main_win->current_tab->current_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)
{
LttvAttributeValue value;
LttvHooks * tmp;
* @param traceset a pointer to a traceset.
*/
/*
-void GetTraceset(MainWindow *main_win, Traceset *traceset)
+void get_traceset(MainWindow *main_win, Traceset *traceset)
{
}
*/
* @param filter, a pointer to a filter.
*/
/*
-void GetFilter(MainWindow *main_win, Filter *filter)
+void get_filter(MainWindow *main_win, Filter *filter)
{
}
*/
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateTimeWindow(LttvHook hook, gpointer hook_data,
+void reg_update_time_window(LttvHook hook, gpointer hook_data,
MainWindow * main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateTimeWindow(LttvHook hook, gpointer hook_data,
+void unreg_update_time_window(LttvHook hook, gpointer hook_data,
MainWindow * main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateTraceset(LttvHook hook, gpointer hook_data,
+void reg_update_traceset(LttvHook hook, gpointer hook_data,
MainWindow * main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateTraceset(LttvHook hook, gpointer hook_data,
+void unreg_update_traceset(LttvHook hook, gpointer hook_data,
MainWindow * main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateFilter(LttvHook hook, gpointer hook_data,
+void reg_update_filter(LttvHook hook, gpointer hook_data,
MainWindow *main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateFilter(LttvHook hook, gpointer hook_data,
+void unreg_update_filter(LttvHook hook, gpointer hook_data,
MainWindow * main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateCurrentTime(LttvHook hook, gpointer hook_data,
+void reg_update_current_time(LttvHook hook, gpointer hook_data,
MainWindow *main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateCurrentTime(LttvHook hook, gpointer hook_data,
+void unreg_update_current_time(LttvHook hook, gpointer hook_data,
MainWindow * main_win)
{
LttvAttributeValue value;
* @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)
{
gtk_custom_set_focus((GtkWidget*)main_win->current_tab->custom,paned);
}
* @param main_win the main window the viewer belongs to.
*/
-void RegUpdateDividor(LttvHook hook, gpointer hook_data,
+void reg_update_dividor(LttvHook hook, gpointer hook_data,
MainWindow *main_win)
{
LttvAttributeValue value;
* @param main_win the main window the viewer belongs to.
*/
-void UnregUpdateDividor(LttvHook hook, gpointer hook_data,
+void unreg_update_dividor(LttvHook hook, gpointer hook_data,
MainWindow *main_win)
{
LttvAttributeValue value;
* @param position position of the hpane's dividor.
*/
-void SetHPaneDividor(MainWindow *main_win, gint position)
+void set_hpane_dividor(MainWindow *main_win, gint position)
{
LttvAttributeValue value;
LttvHooks * tmp;
* @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)
{
lttv_process_traceset_seek_time(main_win->traceset_info->traceset_context, start);
lttv_process_traceset(main_win->traceset_info->traceset_context, end, maxNumEvents);
* @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)
{
LttvTracesetContext * tsc =
LTTV_TRACESET_CONTEXT(main_win->traceset_info->traceset_context);
* @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)
{
LttvTracesetContext * tsc =
LTTV_TRACESET_CONTEXT(main_win->traceset_info->traceset_context);
* @param main_win the main window the viewer belongs to.
*/
-void stateAddEventHooks(MainWindow *main_win )
+void state_add_event_hooks_api(MainWindow *main_win )
{
lttv_state_add_event_hooks(
(LttvTracesetState*)main_win->traceset_info->traceset_context);
}
-void stateRemoveEventHooks(MainWindow *main_win )
+void state_remove_event_hooks_api(MainWindow *main_win )
{
lttv_state_remove_event_hooks(
(LttvTracesetState*)main_win->traceset_info->traceset_context);
* @param main_win the main window the viewer belongs to.
*/
-void statsAddEventHooks(MainWindow *main_win )
+void stats_add_event_hooks_api(MainWindow *main_win )
{
lttv_stats_add_event_hooks(
(LttvTracesetStats*)main_win->traceset_info->traceset_context);
}
-void statsRemoveEventHooks(MainWindow *main_win )
+void stats_remove_event_hooks_api(MainWindow *main_win )
{
lttv_stats_remove_event_hooks(
(LttvTracesetStats*)main_win->traceset_info->traceset_context);
* @param main_win the main window the viewer belongs to.
*/
-LttvTracesetStats* getTracesetStats(MainWindow *main_win)
+LttvTracesetStats* get_traceset_stats_api(MainWindow *main_win)
{
return main_win->traceset_info->traceset_context;
}
}else{
// Will have to read directly at the main window level, as we want
// to be able to modify a traceset on the fly.
- // getTracesetTimeSpan(mw_data,&tmp_tab->traceStartTime, &tmp_tab->traceEndTime);
+ // get_traceset_time_span(mw_data,&tmp_tab->traceStartTime, &tmp_tab->traceEndTime);
tmp_tab->time_window.start_time =
LTTV_TRACESET_CONTEXT(mw_data->traceset_info->traceset_context)->Time_Span->startTime;
if(DEFAULT_TIME_WIDTH_S <
gtk_widget_show(custom->hscrollbar);
custom->hadjust = gtk_range_get_adjustment(GTK_RANGE(custom->hscrollbar));
- GetTimeWindow(custom->mw,&Time_Window);
- GetCurrentTime(custom->mw,&time);
+ get_time_window(custom->mw,&Time_Window);
+ get_current_time(custom->mw,&time);
Time_Span = LTTV_TRACESET_CONTEXT(custom->mw->traceset_info->traceset_context)->Time_Span ;
custom->hadjust->lower = ltt_time_to_double(Time_Span->startTime) *
GtkCustom * custom = (GtkCustom*)custom_arg;
gdouble value = gtk_range_get_value(range);
time = ltt_time_from_double(value / NANOSECONDS_PER_SECOND);
- SetCurrentTime(custom->mw, &time);
+ set_current_time(custom->mw, &time);
g_warning("The current time is second :%d, nanosecond : %d\n", time.tv_sec, time.tv_nsec);
}
/* Process List is removed with it's widget */
//ProcessList_destroy(Control_Flow_Data->Process_List);
- UnregUpdateTimeWindow(Update_Time_Window_Hook,
+ unreg_update_time_window(Update_Time_Window_Hook,
Control_Flow_Data,
Control_Flow_Data->Scrolled_Window_VC->parent);
- UnregUpdateCurrentTime(Update_Current_Time_Hook,
+ unreg_update_current_time(Update_Current_Time_Hook,
Control_Flow_Data,
Control_Flow_Data->Scrolled_Window_VC->parent);
g_critical("hGuiControlFlow");
ControlFlowData *Control_Flow_Data = GuiControlFlow() ;
- GetTimeWindow(pmParentWindow,
+ get_time_window(pmParentWindow,
GuiControlFlow_get_Time_Window(Control_Flow_Data));
- GetCurrentTime(pmParentWindow,
+ get_current_time(pmParentWindow,
GuiControlFlow_get_Current_Time(Control_Flow_Data));
// Unreg done in the GuiControlFlow_Destructor
- RegUpdateTimeWindow(Update_Time_Window_Hook, Control_Flow_Data,
+ reg_update_time_window(Update_Time_Window_Hook, Control_Flow_Data,
pmParentWindow);
- RegUpdateCurrentTime(Update_Current_Time_Hook, Control_Flow_Data,
+ reg_update_current_time(Update_Current_Time_Hook, Control_Flow_Data,
pmParentWindow);
return GuiControlFlow_get_Widget(Control_Flow_Data) ;
g_critical("GUI ControlFlow Viewer init()");
/* Register the toolbar insert button */
- ToolbarItemReg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer",
+ toolbar_item_reg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer",
hGuiControlFlow);
/* Register the menu item insert entry */
- MenuItemReg("/", "Insert Control Flow Viewer", hGuiControlFlow);
+ menu_item_reg("/", "Insert Control Flow Viewer", hGuiControlFlow);
}
g_slist_free(gControl_Flow_Data_List);
/* Unregister the toolbar insert button */
- ToolbarItemUnreg(hGuiControlFlow);
+ toolbar_item_unreg(hGuiControlFlow);
/* Unregister the menu item insert entry */
- MenuItemUnreg(hGuiControlFlow);
+ menu_item_unreg(hGuiControlFlow);
}
}
/* Register the toolbar insert button */
- ToolbarItemReg(hGuiEventsInsert_xpm, "Insert Event Viewer", h_gui_events);
+ toolbar_item_reg(hGuiEventsInsert_xpm, "Insert Event Viewer", h_gui_events);
/* Register the menu item insert entry */
- MenuItemReg("/", "Insert Event Viewer", h_gui_events);
+ menu_item_reg("/", "Insert Event Viewer", h_gui_events);
}
}
/* Unregister the toolbar insert button */
- ToolbarItemUnreg(h_gui_events);
+ toolbar_item_unreg(h_gui_events);
/* Unregister the menu item insert entry */
- MenuItemUnreg(h_gui_events);
+ menu_item_unreg(h_gui_events);
}
/* Enumeration of the columns */
unsigned size;
event_viewer_data->mw = parent_window;
- GetTimeWindow(event_viewer_data->mw, &event_viewer_data->time_window);
- GetCurrentTime(event_viewer_data->mw, &event_viewer_data->current_time);
+ get_time_window(event_viewer_data->mw, &event_viewer_data->time_window);
+ get_current_time(event_viewer_data->mw, &event_viewer_data->current_time);
event_viewer_data->before_event_hooks = lttv_hooks_new();
lttv_hooks_add(event_viewer_data->before_event_hooks, parse_event, event_viewer_data);
event_viewer_data->raw_trace_data_queue = g_queue_new();
event_viewer_data->raw_trace_data_queue_tmp = g_queue_new();
- RegUpdateTimeWindow(update_time_window,event_viewer_data, event_viewer_data->mw);
- RegUpdateCurrentTime(update_current_time,event_viewer_data, event_viewer_data->mw);
+ reg_update_time_window(update_time_window,event_viewer_data, event_viewer_data->mw);
+ reg_update_current_time(update_current_time,event_viewer_data, event_viewer_data->mw);
event_viewer_data->scroll_win = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_show ( event_viewer_data->scroll_win);
event_viewer_data->num_visible_events = 1;
//get the life span of the traceset and set the upper of the scroll bar
- getTracesetTimeSpan(event_viewer_data->mw, &event_viewer_data->time_span);
+ get_traceset_time_span(event_viewer_data->mw, &event_viewer_data->time_span);
start = ltt_time_sub(event_viewer_data->time_span.endTime, event_viewer_data->time_span.startTime);
event_viewer_data->vadjust_c->upper = ltt_time_to_double(start) * NANOSECONDS_PER_SECOND;
if(ltt_time.tv_sec != event_viewer_data->current_time.tv_sec ||
ltt_time.tv_nsec != event_viewer_data->current_time.tv_nsec)
- SetCurrentTime(event_viewer_data->mw,<t_time);
+ set_current_time(event_viewer_data->mw,<t_time);
}else{
g_warning("Can not get iter\n");
}
g_queue_free(event_viewer_data->raw_trace_data_queue);
g_queue_free(event_viewer_data->raw_trace_data_queue_tmp);
- UnregUpdateTimeWindow(update_time_window,event_viewer_data, event_viewer_data->mw);
- UnregUpdateCurrentTime(update_current_time,event_viewer_data, event_viewer_data->mw);
+ unreg_update_time_window(update_time_window,event_viewer_data, event_viewer_data->mw);
+ unreg_update_current_time(update_current_time,event_viewer_data, event_viewer_data->mw);
g_event_viewer_data_list = g_slist_remove(g_event_viewer_data_list, event_viewer_data);
g_free(event_viewer_data);
void tree_v_grab_focus(GtkWidget *widget, gpointer data){
EventViewerData *event_viewer_data = (EventViewerData *)data;
MainWindow * mw = event_viewer_data->mw;
- SetFocusedPane(mw, gtk_widget_get_parent(event_viewer_data->hbox_v));
+ set_focused_pane(mw, gtk_widget_get_parent(event_viewer_data->hbox_v));
}
void get_events(EventViewerData* event_viewer_data, LttTime start,
{
int size;
RawTraceData * data;
- contextAddHooks(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
- processTraceset(event_viewer_data->mw, start, end, max_num_events);
- contextRemoveHooks(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
+ context_add_hooks_api(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
+ process_traceset_api(event_viewer_data->mw, start, end, max_num_events);
+ context_remove_hooks_api(event_viewer_data->mw, NULL, NULL, NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL,event_viewer_data->before_event_hooks,NULL);
size = event_viewer_data->raw_trace_data_queue_tmp->length;
*real_num_events = size;
}
/* Register the toolbar insert button */
- ToolbarItemReg(hGuiStatisticInsert_xpm, "Insert Statistic Viewer", h_gui_statistic);
+ toolbar_item_reg(hGuiStatisticInsert_xpm, "Insert Statistic Viewer", h_gui_statistic);
/* Register the menu item insert entry */
- MenuItemReg("/", "Insert Statistic Viewer", h_gui_statistic);
+ menu_item_reg("/", "Insert Statistic Viewer", h_gui_statistic);
}
}
/* Unregister the toolbar insert button */
- ToolbarItemUnreg(h_gui_statistic);
+ toolbar_item_unreg(h_gui_statistic);
/* Unregister the menu item insert entry */
- MenuItemUnreg(h_gui_statistic);
+ menu_item_unreg(h_gui_statistic);
}
StatisticViewerData* statistic_viewer_data = g_new(StatisticViewerData,1);
statistic_viewer_data->mw = parent_window;
- statistic_viewer_data->stats = getTracesetStats(statistic_viewer_data->mw);
+ statistic_viewer_data->stats = get_traceset_stats_api(statistic_viewer_data->mw);
statistic_viewer_data->statistic_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
statistic_destroy_hash_key,
{
StatisticViewerData *statistic_viewer_data = (StatisticViewerData *)data;
MainWindow * mw = statistic_viewer_data->mw;
- SetFocusedPane(mw, gtk_widget_get_parent(statistic_viewer_data->hpaned_v));
+ set_focused_pane(mw, gtk_widget_get_parent(statistic_viewer_data->hpaned_v));
}
static void
end.tv_sec = G_MAXULONG;
end.tv_nsec = G_MAXULONG;
- stateAddEventHooks(statistic_viewer_data->mw);
- statsAddEventHooks(statistic_viewer_data->mw);
+ state_add_event_hooks_api(statistic_viewer_data->mw);
+ stats_add_event_hooks_api(statistic_viewer_data->mw);
- processTraceset(statistic_viewer_data->mw, start, end, G_MAXULONG);
+ process_traceset_api(statistic_viewer_data->mw, start, end, G_MAXULONG);
- stateRemoveEventHooks(statistic_viewer_data->mw);
- statsRemoveEventHooks(statistic_viewer_data->mw);
+ state_remove_event_hooks_api(statistic_viewer_data->mw);
+ stats_remove_event_hooks_api(statistic_viewer_data->mw);
//establish tree view for stats
show_traceset_stats(statistic_viewer_data);