change function names
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 12 Nov 2003 12:26:31 +0000 (12:26 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 12 Nov 2003 12:26:31 +0000 (12:26 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@335 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c
ltt/branches/poly/lttv/modules/guiControlFlow/CFV.h
ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.c
ltt/branches/poly/lttv/modules/guiControlFlow/Draw_Item.h
ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c
ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h
ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.c
ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h
ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.c
ltt/branches/poly/lttv/modules/guiControlFlow/Process_List.h
ltt/branches/poly/lttv/modules/guiControlFlow/test.c

index d49bd13112102cfd1821c020268b66b9a1c2aeb4..109d5a03265ea4a2a2b7f48e8db4522b0e01ae80 100644 (file)
@@ -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;
 }
index 548ae8907facd0bbe5da10f2eccacc6b9b9d494a..b77b632c9a6fb37bb7d4a4cd5fee6d23a130b30a 100644 (file)
@@ -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
index 4ccd30e8760ab74f7fd4d27047d647c97b81e7b6..b363b675b4856603f62a0b08bd8ea23f1ff04cb2 100644 (file)
@@ -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;
index 51e1a0d596c42821c45af0849c55b99f42f2d0c7..86ecc8d9903199f0b10dda8979b29b4acb47bb27 100644 (file)
@@ -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
index e2225a118ab56c6c8c53e6c62c060dd1f57dd982..e1eb88d9097c3f323ab997e63455d6d9360a9079 100644 (file)
@@ -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)
 {
index 418f68858c0065f610d82497b03bbe243ca8a3e6..283a2338fc968a57f93129bc4e6a10a484eea194 100644 (file)
@@ -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);
 
index 06f413cabb7e12d605a46dc789c55fe37eab7cc1..d0ab181296b0d86d44c1057b1bd14c3167ede021 100644 (file)
@@ -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);
index 0d9baa1c5acf4a8d2b405c16cd411940d18d31dc..21f7df5cd3d16d1113a502a60fe2ce0999994882 100644 (file)
 
 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
index e3197541dcfc0cbf1122790214d4029bb44f2436..f5221394147eb3c7b4071977266942b005c79fd1 100644 (file)
@@ -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)
index f2fa69cb3c39998780fa1b0b08189e9f175b825e..781d85e2b5751a4453365b154c27e25ea441dddd 100644 (file)
@@ -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
index 664696d6c3fc8299ba003bfa67c420739b0358ed..42998665cd3185430dd54ab015b534d8c6a9b6d6 100644 (file)
@@ -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();
This page took 0.041375 seconds and 4 git commands to generate.