From 4c69e0cc2b20bbe101918f769842e31101045767 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 12 Nov 2003 12:26:31 +0000 Subject: [PATCH] change function names git-svn-id: http://ltt.polymtl.ca/svn@335 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/guiControlFlow/CFV.c | 26 +++--- .../poly/lttv/modules/guiControlFlow/CFV.h | 14 +-- .../lttv/modules/guiControlFlow/Draw_Item.c | 10 +-- .../lttv/modules/guiControlFlow/Draw_Item.h | 32 +++---- .../lttv/modules/guiControlFlow/Drawing.c | 30 +++---- .../lttv/modules/guiControlFlow/Drawing.h | 12 +-- .../lttv/modules/guiControlFlow/Event_Hooks.c | 88 +++++++++---------- .../lttv/modules/guiControlFlow/Event_Hooks.h | 14 +-- .../modules/guiControlFlow/Process_List.c | 26 +++--- .../modules/guiControlFlow/Process_List.h | 14 +-- .../poly/lttv/modules/guiControlFlow/test.c | 4 +- 11 files changed, 135 insertions(+), 135 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c b/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c index d49bd131..109d5a03 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c @@ -24,17 +24,17 @@ extern GSList *gControl_Flow_Data_List; * @return The widget created. */ ControlFlowData * -GuiControlFlow(void) +guicontrolflow(void) { GtkWidget *Process_List_Widget, *Drawing_Widget; ControlFlowData* Control_Flow_Data = g_new(ControlFlowData,1) ; /* Create the Drawing */ - Control_Flow_Data->Drawing = Drawing_construct(Control_Flow_Data); + Control_Flow_Data->Drawing = drawing_construct(Control_Flow_Data); Drawing_Widget = - Drawing_getWidget(Control_Flow_Data->Drawing); + drawing_get_widget(Control_Flow_Data->Drawing); /* TEST DATA, TO BE READ FROM THE TRACE */ Control_Flow_Data->Number_Of_Events = 1000 ; @@ -47,10 +47,10 @@ GuiControlFlow(void) /* Create the Process list */ - Control_Flow_Data->Process_List = ProcessList_construct(); + Control_Flow_Data->Process_List = processlist_construct(); Process_List_Widget = - ProcessList_getWidget(Control_Flow_Data->Process_List); + processlist_get_widget(Control_Flow_Data->Process_List); Control_Flow_Data->Inside_HBox_V = gtk_hbox_new(0, 0); @@ -113,7 +113,7 @@ GuiControlFlow(void) G_OBJECT(Control_Flow_Data->Scrolled_Window_VC), "Control_Flow_Data", Control_Flow_Data, - (GDestroyNotify)GuiControlFlow_Destructor); + (GDestroyNotify)guicontrolflow_destructor); gControl_Flow_Data_List = g_slist_append( gControl_Flow_Data_List, @@ -130,17 +130,17 @@ GuiControlFlow(void) /* Destroys widget also */ void -GuiControlFlow_Destructor_Full(ControlFlowData *Control_Flow_Data) +guicontrolflow_destructor_full(ControlFlowData *Control_Flow_Data) { /* May already have been done by GTK window closing */ if(GTK_IS_WIDGET(Control_Flow_Data->Scrolled_Window_VC)) gtk_widget_destroy(Control_Flow_Data->Scrolled_Window_VC); - GuiControlFlow_Destructor(Control_Flow_Data); + guicontrolflow_destructor(Control_Flow_Data); } void -GuiControlFlow_Destructor(ControlFlowData *Control_Flow_Data) +guicontrolflow_destructor(ControlFlowData *Control_Flow_Data) { guint index; @@ -158,22 +158,22 @@ GuiControlFlow_Destructor(ControlFlowData *Control_Flow_Data) g_free(Control_Flow_Data); } -GtkWidget *GuiControlFlow_get_Widget(ControlFlowData *Control_Flow_Data) +GtkWidget *guicontrolflow_get_widget(ControlFlowData *Control_Flow_Data) { return Control_Flow_Data->Scrolled_Window_VC ; } -ProcessList *GuiControlFlow_get_Process_List +ProcessList *guicontrolflow_get_process_list (ControlFlowData *Control_Flow_Data) { return Control_Flow_Data->Process_List ; } -TimeWindow *GuiControlFlow_get_Time_Window(ControlFlowData *Control_Flow_Data) +TimeWindow *guicontrolflow_get_time_window(ControlFlowData *Control_Flow_Data) { return &Control_Flow_Data->Time_Window; } -LttTime *GuiControlFlow_get_Current_Time(ControlFlowData *Control_Flow_Data) +LttTime *guicontrolflow_get_current_time(ControlFlowData *Control_Flow_Data) { return &Control_Flow_Data->Current_Time; } diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.h b/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.h index 548ae890..b77b632c 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/CFV.h @@ -9,15 +9,15 @@ typedef struct _ControlFlowData ControlFlowData; /* Control Flow Data constructor */ -ControlFlowData *GuiControlFlow(void); +ControlFlowData *guicontrolflow(void); void -GuiControlFlow_Destructor_Full(ControlFlowData *Control_Flow_Data); +guicontrolflow_destructor_full(ControlFlowData *Control_Flow_Data); void -GuiControlFlow_Destructor(ControlFlowData *Control_Flow_Data); -GtkWidget *GuiControlFlow_get_Widget(ControlFlowData *Control_Flow_Data); -ProcessList *GuiControlFlow_get_Process_List(ControlFlowData *Control_Flow_Data); -TimeWindow *GuiControlFlow_get_Time_Window(ControlFlowData *Control_Flow_Data); -LttTime *GuiControlFlow_get_Current_Time(ControlFlowData *Control_Flow_Data); +guicontrolflow_destructor(ControlFlowData *Control_Flow_Data); +GtkWidget *guicontrolflow_get_widget(ControlFlowData *Control_Flow_Data); +ProcessList *guicontrolflow_get_process_list(ControlFlowData *Control_Flow_Data); +TimeWindow *guicontrolflow_get_time_window(ControlFlowData *Control_Flow_Data); +LttTime *guicontrolflow_get_current_time(ControlFlowData *Control_Flow_Data); #endif // _CFV_H diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c index 4ccd30e8..b363b675 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c @@ -203,34 +203,34 @@ struct _PropertiesBG { /* Drawing hook functions */ -gboolean DrawText( void *hook_data, void *call_data) +gboolean draw_text( void *hook_data, void *call_data) { PropertiesText *Properties = (PropertiesText*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; } -gboolean DrawIcon( void *hook_data, void *call_data) +gboolean draw_icon( void *hook_data, void *call_data) { PropertiesIcon *Properties = (PropertiesIcon*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; } -gboolean DrawLine( void *hook_data, void *call_data) +gboolean draw_line( void *hook_data, void *call_data) { PropertiesLine *Properties = (PropertiesLine*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; } -gboolean DrawArc( void *hook_data, void *call_data) +gboolean draw_arc( void *hook_data, void *call_data) { PropertiesArc *Properties = (PropertiesArc*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; } -gboolean DrawBG( void *hook_data, void *call_data) +gboolean draw_bg( void *hook_data, void *call_data) { PropertiesBG *Properties = (PropertiesBG*)hook_data; DrawContext *Draw_Context = (DrawContext*)call_data; diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.h index 51e1a0d5..86ecc8d9 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.h @@ -15,7 +15,7 @@ typedef struct _PropertiesArc PropertiesArc; typedef struct _PropertiesBG PropertiesBG; -void Draw_Item( GdkDrawable *drawable, +void draw_item( GdkDrawable *drawable, gint x, gint y, LttvTraceState *ts, @@ -43,45 +43,45 @@ void Draw_Item( GdkDrawable *drawable, */ /* - * The AddOperation has to do a quick sort by priority to keep the operations + * The add_operation has to do a quick sort by priority to keep the operations * in the right order. */ -void AddOperation( LttvIAttribute *attributes, +void add_operation( LttvIAttribute *attributes, gchar *pathname, DrawOperation *Operation); /* - * The DelOperation seeks the array present at pathname (if any) and + * The del_operation seeks the array present at pathname (if any) and * removes the DrawOperation if present. It returns 0 on success, -1 * if it fails. */ -gint DelOperation( LttvIAttribute *attributes, +gint del_operation( LttvIAttribute *attributes, gchar *pathname, DrawOperation *Operation); /* - * The CleanOperations removes all operations present at a pathname. + * The clean_operations removes all operations present at a pathname. * returns 0 on success, -1 if it fails. */ -gint DelOperations( LttvIAttribute *attributes, +gint clean_operations( LttvIAttribute *attributes, gchar *pathname ); /* - * The ListOperation gives a pointer to the operation array associated + * The list_operations gives a pointer to the operation array associated * with the pathname. It will be NULL if no operation is present. */ -void ListOperations( LttvIAttribute *attributes, +void list_operations( LttvIAttribute *attributes, gchar *pathname, GArray **Operation); /* - * ExecOperation executes the operations if present in the attributes, or + * exec_operation executes the operations if present in the attributes, or * do nothing if not present. */ -void ExecOperations( LttvIAttribute *attributes, +void exec_operations( LttvIAttribute *attributes, gchar *pathname); @@ -125,11 +125,11 @@ PropertiesBG *properties_bg_create( * different items. */ -gboolean DrawText( void *hook_data, void *call_data); -gboolean DrawIcon( void *hook_data, void *call_data); -gboolean DrawLine( void *hook_data, void *call_data); -gboolean DrawArc( void *hook_data, void *call_data); -gboolean DrawBG( void *hook_data, void *call_data); +gboolean draw_text( void *hook_data, void *call_data); +gboolean draw_icon( void *hook_data, void *call_data); +gboolean draw_line( void *hook_data, void *call_data); +gboolean draw_arc( void *hook_data, void *call_data); +gboolean draw_bg( void *hook_data, void *call_data); #endif // _DRAW_ITEM_H diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c index e2225a11..e1eb88d9 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c @@ -44,10 +44,10 @@ static GdkColor CF_Colors [] = /* Function responsible for updating the exposed area. * It must call processTrace() to ask for this update. */ -void Drawing_Data_Request(Drawing_t *Drawing, +void drawing_data_request(Drawing_t *Drawing, GdkPixmap **Pixmap, gint x, gint y, - gint width, + gint width, gint height) { if(width < 0) return ; @@ -61,10 +61,10 @@ void Drawing_Data_Request(Drawing_t *Drawing, height); send_test_process( - GuiControlFlow_get_Process_List(Drawing->Control_Flow_Data), + guicontrolflow_get_process_list(Drawing->Control_Flow_Data), Drawing); send_test_drawing( - GuiControlFlow_get_Process_List(Drawing->Control_Flow_Data), + guicontrolflow_get_process_list(Drawing->Control_Flow_Data), Drawing, *Pixmap, x, y, width, height); } @@ -101,7 +101,7 @@ configure_event( GtkWidget *widget, GdkEventConfigure *event, Drawing->height = widget->allocation.height; g_critical("init data"); /* Initial data request */ - Drawing_Data_Request(Drawing, &Drawing->Pixmap, 0, 0, + drawing_data_request(Drawing, &Drawing->Pixmap, 0, 0, widget->allocation.width, widget->allocation.height); @@ -124,10 +124,10 @@ g_critical("init data"); /* Request data for missing space */ g_critical("missing data"); - Drawing_Data_Request(Drawing, &Pixmap, Drawing->width, 0, + drawing_data_request(Drawing, &Pixmap, Drawing->width, 0, widget->allocation.width - Drawing->width, widget->allocation.height); - Drawing_Data_Request(Drawing, &Pixmap, 0, Drawing->height, + drawing_data_request(Drawing, &Pixmap, 0, Drawing->height, Drawing->width, widget->allocation.height - Drawing->height); @@ -178,7 +178,7 @@ expose_event( GtkWidget *widget, GdkEventExpose *event, gpointer user_data ) return FALSE; } -Drawing_t *Drawing_construct(ControlFlowData *Control_Flow_Data) +Drawing_t *drawing_construct(ControlFlowData *Control_Flow_Data) { Drawing_t *Drawing = g_new(Drawing_t, 1); @@ -228,7 +228,7 @@ Drawing_t *Drawing_construct(ControlFlowData *Control_Flow_Data) return Drawing; } -void Drawing_destroy(Drawing_t *Drawing) +void drawing_destroy(Drawing_t *Drawing) { // Do not unref here, Drawing_t destroyed by it's widget. @@ -237,7 +237,7 @@ void Drawing_destroy(Drawing_t *Drawing) g_free(Drawing); } -GtkWidget *Drawing_getWidget(Drawing_t *Drawing) +GtkWidget *drawing_get_widget(Drawing_t *Drawing) { return Drawing->Drawing_Area_V; } @@ -284,7 +284,7 @@ void convert_time_to_pixels( } -void Drawing_Refresh ( Drawing_t *Drawing, +void drawing_refresh ( Drawing_t *Drawing, guint x, guint y, guint width, guint height) { @@ -308,7 +308,7 @@ void Drawing_Refresh ( Drawing_t *Drawing, } -void Drawing_draw_line( Drawing_t *Drawing, +void drawing_draw_line( Drawing_t *Drawing, GdkPixmap *Pixmap, guint x1, guint y1, guint x2, guint y2, @@ -322,7 +322,7 @@ void Drawing_draw_line( Drawing_t *Drawing, -void Drawing_Resize(Drawing_t *Drawing, guint h, guint w) +void drawing_resize(Drawing_t *Drawing, guint h, guint w) { Drawing->height = h ; Drawing->width = w ; @@ -337,7 +337,7 @@ void Drawing_Resize(Drawing_t *Drawing, guint h, guint w) /* Insert a square corresponding to a new process in the list */ /* Applies to whole Drawing->width */ -void Drawing_Insert_Square(Drawing_t *Drawing, +void drawing_insert_square(Drawing_t *Drawing, guint y, guint height) { @@ -398,7 +398,7 @@ void Drawing_Insert_Square(Drawing_t *Drawing, /* Remove a square corresponding to a removed process in the list */ -void Drawing_Remove_Square(Drawing_t *Drawing, +void drawing_remove_square(Drawing_t *Drawing, guint y, guint height) { diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h index 418f6885..283a2338 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h @@ -34,16 +34,16 @@ struct _Drawing_t { }; -Drawing_t *Drawing_construct(ControlFlowData *Control_Flow_Data); -void Drawing_destroy(Drawing_t *Drawing); +Drawing_t *drawing_construct(ControlFlowData *Control_Flow_Data); +void drawing_destroy(Drawing_t *Drawing); -GtkWidget *Drawing_getWidget(Drawing_t *Drawing); +GtkWidget *drawing_get_widget(Drawing_t *Drawing); //void Drawing_Refresh ( Drawing_t *Drawing, // guint x, guint y, // guint width, guint height); -void Drawing_draw_line( Drawing_t *Drawing, +void drawing_draw_line( Drawing_t *Drawing, GdkPixmap *Pixmap, guint x1, guint y1, guint x2, guint y2, @@ -55,12 +55,12 @@ void Drawing_draw_line( Drawing_t *Drawing, // guint width, guint height); /* Insert a square corresponding to a new process in the list */ -void Drawing_Insert_Square(Drawing_t *Drawing, +void drawing_insert_square(Drawing_t *Drawing, guint y, guint height); /* Remove a square corresponding to a removed process in the list */ -void Drawing_Remove_Square(Drawing_t *Drawing, +void drawing_remove_square(Drawing_t *Drawing, guint y, guint height); diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.c index 06f413ca..d0ab1812 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.c @@ -53,14 +53,14 @@ void send_test_drawing(ProcessList *Process_List, birth.tv_sec = 12000; birth.tv_nsec = 55500; g_critical("we have : x : %u, y : %u, width : %u, height : %u", x, y, width, height); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 1, &birth, &y, &height); g_critical("we draw : x : %u, y : %u, width : %u, height : %u", x, y, width, height); - Drawing_draw_line( + drawing_draw_line( Drawing, Pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->Drawing_Area_V->style->black_gc); @@ -72,14 +72,14 @@ void send_test_drawing(ProcessList *Process_List, birth.tv_sec = 14000; birth.tv_nsec = 55500; - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 156, &birth, &y, &height); - Drawing_draw_line( + drawing_draw_line( Drawing, Pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->Drawing_Area_V->style->black_gc); @@ -89,14 +89,14 @@ void send_test_drawing(ProcessList *Process_List, birth.tv_sec = 12000; birth.tv_nsec = 55700; - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 10, &birth, &y, &height); - Drawing_draw_line( + drawing_draw_line( Drawing, Pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->Drawing_Area_V->style->black_gc); @@ -108,14 +108,14 @@ void send_test_drawing(ProcessList *Process_List, birth.tv_sec = i*12000; birth.tv_nsec = i*55700; - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, i, &birth, &y, &height); - Drawing_draw_line( + drawing_draw_line( Drawing, Pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->Drawing_Area_V->style->black_gc); @@ -127,14 +127,14 @@ void send_test_drawing(ProcessList *Process_List, birth.tv_sec = 12000; birth.tv_nsec = 55600; - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 10, &birth, &y, &height); - Drawing_draw_line( + drawing_draw_line( Drawing, Pixmap, x, y+(height/2), x + width, y+(height/2), Drawing->Drawing_Area_V->style->black_gc); @@ -162,68 +162,68 @@ void send_test_process(ProcessList *Process_List, Drawing_t *Drawing) birth.tv_sec = 12000; birth.tv_nsec = 55500; - ProcessList_add(Process_List, + processlist_add(Process_List, 1, &birth, &y); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 1, &birth, &y, &height); - Drawing_Insert_Square( Drawing, y, height); + drawing_insert_square( Drawing, y, height); //g_critical("y : %u, height : %u", y, height); birth.tv_sec = 14000; birth.tv_nsec = 55500; - ProcessList_add(Process_List, + processlist_add(Process_List, 156, &birth, &y); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 156, &birth, &y, &height); - Drawing_Insert_Square( Drawing, y, height); + drawing_insert_square( Drawing, y, height); //g_critical("y : %u, height : %u", y, height); birth.tv_sec = 12000; birth.tv_nsec = 55700; - ProcessList_add(Process_List, + processlist_add(Process_List, 10, &birth, &height); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 10, &birth, &y, &height); - Drawing_Insert_Square( Drawing, y, height); + drawing_insert_square( Drawing, y, height); //g_critical("y : %u, height : %u", y, height); - //Drawing_Insert_Square( Drawing, height, 5); + //drawing_insert_square( Drawing, height, 5); for(i=0; i<10; i++) { birth.tv_sec = i*12000; birth.tv_nsec = i*55700; - ProcessList_add(Process_List, + processlist_add(Process_List, i, &birth, &height); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, i, &birth, &y, &height); - Drawing_Insert_Square( Drawing, y, height); + drawing_insert_square( Drawing, y, height); // g_critical("y : %u, height : %u", y, height); @@ -233,45 +233,45 @@ void send_test_process(ProcessList *Process_List, Drawing_t *Drawing) birth.tv_sec = 12000; birth.tv_nsec = 55600; - ProcessList_add(Process_List, + processlist_add(Process_List, 10, &birth, &y); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 10, &birth, &y, &height); - Drawing_Insert_Square( Drawing, y, height); + drawing_insert_square( Drawing, y, height); //g_critical("y : %u, height : %u", y, height); - ProcessList_add(Process_List, + processlist_add(Process_List, 10000, &birth, &height); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 10000, &birth, &y, &height); - Drawing_Insert_Square( Drawing, y, height); + drawing_insert_square( Drawing, y, height); //g_critical("y : %u, height : %u", y, height); - //Drawing_Insert_Square( Drawing, height, 5); + //drawing_insert_square( Drawing, height, 5); //g_critical("height : %u", height); - ProcessList_get_process_pixels(Process_List, + processlist_get_process_pixels(Process_List, 10000, &birth, &y, &height); - ProcessList_remove( Process_List, + processlist_remove( Process_List, 10000, &birth); - Drawing_Remove_Square( Drawing, y, height); + drawing_remove_square( Drawing, y, height); if(got_RowRef = (GtkTreeRowReference*)g_hash_table_lookup( @@ -302,10 +302,10 @@ void send_test_process(ProcessList *Process_List, Drawing_t *Drawing) * @return The widget created. */ GtkWidget * -hGuiControlFlow(MainWindow *pmParentWindow, LttvTracesetSelector * s, char * key) +h_guicontrolflow(MainWindow *pmParentWindow, LttvTracesetSelector * s, char * key) { g_critical("hGuiControlFlow"); - ControlFlowData *Control_Flow_Data = GuiControlFlow() ; + ControlFlowData *Control_Flow_Data = guicontrolflow() ; get_time_window(pmParentWindow, GuiControlFlow_get_Time_Window(Control_Flow_Data)); @@ -331,7 +331,7 @@ int Event_Selected_Hook(void *hook_data, void *call_data) // Control_Flow_Data->Currently_Selected_Event = *Event_Number; // Control_Flow_Data->Selected_Event = TRUE ; -// Tree_V_set_cursor(Control_Flow_Data); +// tree_v_set_cursor(Control_Flow_Data); } @@ -339,7 +339,7 @@ int Event_Selected_Hook(void *hook_data, void *call_data) /* Hook called before drawing. Gets the initial context at the beginning of the * drawing interval and copy it to the context in Event_Request. */ -int Draw_Before_Hook(void *hook_data, void *call_data) +int draw_before_hook(void *hook_data, void *call_data) { EventRequest *Event_Request = (EventRequest*)hook_data; EventsContext Events_Context = (EventsContext*)call_data; @@ -369,7 +369,7 @@ int Draw_Before_Hook(void *hook_data, void *call_data) * The choice of lines'color is defined by the context of the last event for this * process. */ -int Draw_Event_Hook(void *hook_data, void *call_data) +int draw_event_hook(void *hook_data, void *call_data) { EventRequest *Event_Request = (EventRequest*)hook_data; @@ -377,7 +377,7 @@ int Draw_Event_Hook(void *hook_data, void *call_data) } -int Draw_After_Hook(void *hook_data, void *call_data) +int draw_after_hook(void *hook_data, void *call_data) { EventRequest *Event_Request = (EventRequest*)hook_data; @@ -389,7 +389,7 @@ int Draw_After_Hook(void *hook_data, void *call_data) -void Update_Time_Window_Hook(void *hook_data, void *call_data) +void update_time_window_hook(void *hook_data, void *call_data) { ControlFlowData *Control_Flow_Data = (ControlFlowData*) hook_data; TimeWindow* Time_Window = @@ -408,24 +408,24 @@ void Update_Time_Window_Hook(void *hook_data, void *call_data) Time_Window->time_width.tv_sec, Time_Window->time_width.tv_nsec); - Drawing_Data_Request(Control_Flow_Data->Drawing, + drawing_data_request(Control_Flow_Data->Drawing, &Control_Flow_Data->Drawing->Pixmap, 0, 0, Control_Flow_Data->Drawing->width, Control_Flow_Data->Drawing->height); - Drawing_Refresh(Control_Flow_Data->Drawing, + drawing_refresh(Control_Flow_Data->Drawing, 0, 0, Control_Flow_Data->Drawing->width, Control_Flow_Data->Drawing->height); } -void Update_Current_Time_Hook(void *hook_data, void *call_data) +void update_current_time_hook(void *hook_data, void *call_data) { ControlFlowData *Control_Flow_Data = (ControlFlowData*) hook_data; LttTime* Current_Time = - GuiControlFlow_get_Current_Time(Control_Flow_Data); + guicontrolflow_get_current_time(Control_Flow_Data); *Current_Time = *((LttTime*)call_data); g_critical("New Current time HOOK : %u, %u", Current_Time->tv_sec, Current_Time->tv_nsec); diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h index 0d9baa1c..21f7df5c 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h @@ -14,14 +14,14 @@ void send_test_data(ProcessList *Process_List, Drawing_t *Drawing); -GtkWidget *hGuiControlFlow(MainWindow *pmParentWindow, LttvTracesetSelector * s, char * key); +GtkWidget *h_guicontrolflow(MainWindow *pmParentWindow, LttvTracesetSelector * s, char * key); -int Event_Selected_Hook(void *hook_data, void *call_data); +int event_selected_hook(void *hook_data, void *call_data); /* Hook called before drawing. Gets the initial context at the beginning of the * drawing interval and copy it to the context in Event_Request. */ -int Draw_Before_Hook(void *hook_data, void *call_data); +int draw_before_hook(void *hook_data, void *call_data); /* * The draw event hook is called by the reading API to have a @@ -43,12 +43,12 @@ int Draw_Before_Hook(void *hook_data, void *call_data); * The choice of lines'color is defined by the context of the last event for this * process. */ -int Draw_Event_Hook(void *hook_data, void *call_data); +int draw_event_hook(void *hook_data, void *call_data); -int Draw_After_Hook(void *hook_data, void *call_data); +int draw_after_hook(void *hook_data, void *call_data); -void Update_Time_Window_Hook(void *hook_data, void *call_data); -void Update_Current_Time_Hook(void *hook_data, void *call_data); +void update_time_window_hook(void *hook_data, void *call_data); +void update_current_time_hook(void *hook_data, void *call_data); #endif // _EVENT_HOOKS_H diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.c index e3197541..f5221394 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.c @@ -153,14 +153,14 @@ gboolean equ_fct(gconstpointer a, gconstpointer b) return 1; } -void Destroy_hash_key(gpointer key); +void destroy_hash_key(gpointer key); -void Destroy_hash_data(gpointer data); +void destroy_hash_data(gpointer data); -ProcessList *ProcessList_construct(void) +ProcessList *processlist_construct(void) { GtkTreeViewColumn *column; GtkCellRenderer *renderer; @@ -197,7 +197,7 @@ ProcessList *ProcessList_construct(void) Process_List->Process_Hash = g_hash_table_new_full( hash_fct, equ_fct, - Destroy_hash_key, Destroy_hash_data + destroy_hash_key, destroy_hash_data ); @@ -251,13 +251,13 @@ ProcessList *ProcessList_construct(void) G_OBJECT(Process_List->Process_List_VC), "Process_List_Data", Process_List, - (GDestroyNotify)ProcessList_destroy); + (GDestroyNotify)processlist_destroy); Process_List->Test_Process_Sent = 0; return Process_List; } -void ProcessList_destroy(ProcessList *Process_List) +void processlist_destroy(ProcessList *Process_List) { g_hash_table_destroy(Process_List->Process_Hash); Process_List->Process_Hash = NULL; @@ -265,7 +265,7 @@ void ProcessList_destroy(ProcessList *Process_List) g_free(Process_List); } -GtkWidget *ProcessList_getWidget(ProcessList *Process_List) +GtkWidget *processlist_get_widget(ProcessList *Process_List) { return Process_List->Process_List_VC; } @@ -285,17 +285,17 @@ gint get_cell_height(GtkTreeView *TreeView) return height; } -void Destroy_hash_key(gpointer key) +void destroy_hash_key(gpointer key) { g_free(key); } -void Destroy_hash_data(gpointer data) +void destroy_hash_data(gpointer data) { g_free(data); } -int ProcessList_add( ProcessList *Process_List, +int processlist_add( ProcessList *Process_List, guint pid, LttTime *birth, guint *height) @@ -343,7 +343,7 @@ int ProcessList_add( ProcessList *Process_List, } -int ProcessList_remove( ProcessList *Process_List, +int processlist_remove( ProcessList *Process_List, guint pid, LttTime *birth) { @@ -381,14 +381,14 @@ int ProcessList_remove( ProcessList *Process_List, } -guint ProcessList_get_height(ProcessList *Process_List) +guint processlist_get_height(ProcessList *Process_List) { return get_cell_height(GTK_TREE_VIEW(Process_List->Process_List_VC)) * Process_List->Number_Of_Process ; } -gint ProcessList_get_process_pixels( ProcessList *Process_List, +gint processlist_get_process_pixels( ProcessList *Process_List, guint pid, LttTime *birth, guint *y, guint *height) diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.h index f2fa69cb..781d85e2 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.h @@ -44,20 +44,20 @@ struct _ProcessList { typedef struct _ProcessList ProcessList; -ProcessList *ProcessList_construct(void); -void ProcessList_destroy(ProcessList *Process_List); -GtkWidget *ProcessList_getWidget(ProcessList *Process_List); +ProcessList *processlist_construct(void); +void processlist_destroy(ProcessList *Process_List); +GtkWidget *processlist_get_widget(ProcessList *Process_List); // out : success (0) and height -int ProcessList_add(ProcessList *Process_List, guint pid, LttTime *birth, +int processlist_add(ProcessList *Process_List, guint pid, LttTime *birth, guint *height); // out : success (0) and height -int ProcessList_remove(ProcessList *Process_List, guint pid, LttTime *birth); +int processlist_remove(ProcessList *Process_List, guint pid, LttTime *birth); -guint ProcessList_get_height(ProcessList *Process_List); +guint processlist_get_height(ProcessList *Process_List); // Returns 0 on success -gint ProcessList_get_process_pixels(ProcessList *Process_List, +gint processlist_get_process_pixels(ProcessList *Process_List, guint pid, LttTime *birth, guint *y, guint *height); #endif // _PROCESS_LIST_H diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/test.c b/ltt/branches/poly/lttv/modules/guiControlFlow/test.c index 664696d6..42998665 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/test.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/test.c @@ -44,7 +44,7 @@ int main(int argc, char **argv) //ListViewer = hGuiEvents(Window); //gtk_box_pack_start(GTK_BOX(VBox_V), ListViewer, FALSE, TRUE, 0); - Control_Flow_Data = GuiControlFlow(); + Control_Flow_Data = guicontrolflow(); CF_Viewer = Control_Flow_Data->Scrolled_Window_VC; gtk_box_pack_start(GTK_BOX(VBox_V), CF_Viewer, TRUE, TRUE, 0); @@ -63,7 +63,7 @@ int main(int argc, char **argv) g_critical("main loop finished"); - //hGuiEvents_Destructor(ListViewer); + //h_guievents_destructor(ListViewer); //g_critical("GuiEvents Destructor finished"); destroy(); -- 2.34.1