From: Alexandre Montplaisir Date: Wed, 7 Dec 2011 15:37:07 +0000 (-0500) Subject: Fix some implicit-function-declaration warnings X-Git-Tag: v1.5-beta1~100 X-Git-Url: http://git.liburcu.org/?p=lttv.git;a=commitdiff_plain;h=68764dfffffe968cf26a3ed26544597cc5edfff1 Fix some implicit-function-declaration warnings time_span -> timespan inconsistency Add a missing prototype to lttvwindow/callbacks.c Signed-off-by: Alexandre Montplaisir Signed-off-by: Mathieu Desnoyers --- diff --git a/lttv/modules/gui/detailedevents/events.c b/lttv/modules/gui/detailedevents/events.c index ae749eac..70696dc6 100644 --- a/lttv/modules/gui/detailedevents/events.c +++ b/lttv/modules/gui/detailedevents/events.c @@ -212,7 +212,7 @@ gui_events(LttvPluginTab *ptab) update_current_position,event_viewer_data); lttvwindow_register_traceset_notify(tab, traceset_changed,event_viewer_data); - lttvwindow_register_time_span_notify(tab, + lttvwindow_register_timespan_notify(tab, timespan_changed,event_viewer_data); lttvwindow_register_filter_notify(tab, filter_changed, event_viewer_data); @@ -1888,7 +1888,7 @@ void gui_events_free(gpointer data) // show_event_detail, event_viewer_data); lttvwindow_unregister_traceset_notify(tab, traceset_changed, event_viewer_data); - lttvwindow_unregister_time_span_notify(tab, + lttvwindow_unregister_timespan_notify(tab, timespan_changed,event_viewer_data); lttvwindow_unregister_filter_notify(tab, filter_changed, event_viewer_data); diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index 310607d7..7243082e 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -75,6 +75,8 @@ char * get_selection(MainWindow *mw, void init_tab(Tab *tab, MainWindow * mw, Tab *copy_tab, GtkNotebook * notebook, char * label); +int update_traceset(Tab *tab, LttvTraceset *traceset); + static void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor); LttvPluginTab *create_new_tab(GtkWidget* widget, gpointer user_data); @@ -303,7 +305,7 @@ int SetTraceset(Tab * tab, LttvTraceset *traceset) } /* Finally, call the update hooks of the viewers */ - gint retval = update_traceset(tab,traceset); + gint retval = update_traceset(tab, traceset); time_change_manager(tab, new_time_window); current_time_change_manager(tab, new_current_time); diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index acb968be..56a847e6 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -474,7 +474,7 @@ __EXPORT void lttvwindow_unregister_time_window_notify(Tab *tab, * @param hook hook function of the viewer. * @param hook_data hook data associated with the hook function. */ -__EXPORT void lttvwindow_register_time_span_notify(Tab *tab, +__EXPORT void lttvwindow_register_timespan_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value; @@ -499,7 +499,7 @@ __EXPORT void lttvwindow_register_time_span_notify(Tab *tab, * @param hook_data hook data associated with the hook function. */ -__EXPORT void lttvwindow_unregister_time_span_notify(Tab *tab, +__EXPORT void lttvwindow_unregister_timespan_notify(Tab *tab, LttvHook hook, gpointer hook_data) { LttvAttributeValue value;