X-Git-Url: http://git.lttng.org/?p=lttv.git;a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.c;h=d76ef62953f73388e824b382de565041c1a5dc5a;hp=60c18157cecbd99d106298c9628ac8f52e54421e;hb=9a366873e0ed6ecc7f23e2d3a959ecddd4f2f91d;hpb=2dd99ee20f5205f235e36af08b89cbc8252c642e diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index 60c18157..d76ef629 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -35,11 +35,12 @@ #include #include #include +#include #ifdef BABEL_CLEANUP #include #endif /* BABEL_CLEANUP */ #include -#include +#include #include #include #include @@ -118,13 +119,11 @@ void set_current_time(Tab *tab, const LttTime *current_time) void set_current_position(Tab *tab, const LttvTracesetPosition *pos) { - #ifdef BABEL_CLEANUP - 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); @@ -133,7 +132,6 @@ void set_current_position(Tab *tab, const LttvTracesetPosition *pos) if (tmp != NULL) { lttv_hooks_call(tmp, (void *) pos); } -#endif /*BABEL_CLEANUP*/ } void add_toolbar_constructor(MainWindow *mw, LttvToolbarClosure *toolbar_c) @@ -1231,9 +1229,14 @@ __EXPORT LttvTracesetStats* lttvwindow_get_traceset_stats(Tab *tab) } #endif /*BABEL_CLEANUP*/ +__EXPORT LttvTraceset *lttvwindow_get_traceset(Tab *tab) +{ + return tab->traceset_info->traceset; +} + void events_request_free(EventsRequest *events_request) { - #ifdef BABEL_CLEANUP +#ifdef BABEL_CLEANUP if(events_request == NULL) return; if(events_request->start_position != NULL) @@ -1267,7 +1270,7 @@ void events_request_free(EventsRequest *events_request) lttv_hooks_destroy(events_request->after_request); g_free(events_request); - #endif /*BABEL_CLEANUP*/ +#endif /*BABEL_CLEANUP*/ }