X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.c;h=d76ef62953f73388e824b382de565041c1a5dc5a;hb=9a366873e0ed6ecc7f23e2d3a959ecddd4f2f91d;hp=56a847e6159e0739229b625b61b1ae0eb3c57a78;hpb=68764dfffffe968cf26a3ed26544597cc5edfff1;p=lttv.git diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index 56a847e6..d76ef629 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -35,10 +35,12 @@ #include #include #include +#include +#ifdef BABEL_CLEANUP #include -#include +#endif /* BABEL_CLEANUP */ #include -#include +#include #include #include #include @@ -115,13 +117,13 @@ void set_current_time(Tab *tab, const LttTime *current_time) * This is called whenever the current time value changes. */ -void set_current_position(Tab *tab, const LttvTracesetContextPosition *pos) +void set_current_position(Tab *tab, const LttvTracesetPosition *pos) { LttvAttributeValue value; LttvHooks * tmp; gboolean retval; - tab->current_time = lttv_traceset_context_position_get_time(pos); + tab->current_time = lttv_traceset_position_get_time(pos); retval= lttv_iattribute_find_by_path(tab->attributes, "hooks/updatecurrentposition", LTTV_POINTER, &value); @@ -1008,7 +1010,7 @@ __EXPORT void lttvwindow_report_current_time(Tab *tab, */ __EXPORT void lttvwindow_report_current_position(Tab *tab, - LttvTracesetContextPosition *pos) + LttvTracesetPosition *pos) { current_position_change_manager(tab, pos); } @@ -1214,7 +1216,7 @@ void lttvwindow_report_filter(Tab *tab, LttvFilter *filter) lttv_hooks_call(tmp, filter); } - +#ifdef BABEL_CLEANUP /** * Function to get the stats of the traceset @@ -1225,15 +1227,16 @@ __EXPORT LttvTracesetStats* lttvwindow_get_traceset_stats(Tab *tab) { return tab->traceset_info->traceset_context; } +#endif /*BABEL_CLEANUP*/ -__EXPORT LttvTracesetContext* lttvwindow_get_traceset_context(Tab *tab) +__EXPORT LttvTraceset *lttvwindow_get_traceset(Tab *tab) { - return (LttvTracesetContext*)tab->traceset_info->traceset_context; + return tab->traceset_info->traceset; } - void events_request_free(EventsRequest *events_request) { +#ifdef BABEL_CLEANUP if(events_request == NULL) return; if(events_request->start_position != NULL) @@ -1267,10 +1270,10 @@ void events_request_free(EventsRequest *events_request) lttv_hooks_destroy(events_request->after_request); g_free(events_request); +#endif /*BABEL_CLEANUP*/ } - __EXPORT GtkWidget *main_window_get_widget(Tab *tab) { return tab->mw->mwindow;