X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2FAPI%2FgtkTraceSet.c;h=336e1f8b21cdf49bdcf446cd7ca7335548e3565f;hb=7a859036ac53f538bd0ff723a1b450d7f26fa733;hp=f5ba86b96a3b91c9846274d1c505115886f862ae;hpb=f735c59ac4e50934e2df2e46eb781b7009310dca;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/API/gtkTraceSet.c b/ltt/branches/poly/lttv/modules/gui/API/gtkTraceSet.c index f5ba86b9..336e1f8b 100644 --- a/ltt/branches/poly/lttv/modules/gui/API/gtkTraceSet.c +++ b/ltt/branches/poly/lttv/modules/gui/API/gtkTraceSet.c @@ -18,6 +18,9 @@ #include #include #include +#include +#include + /** * Internal function parts @@ -675,3 +678,45 @@ void getTracesetTimeSpan(mainWindow *main_win, LttTime * start, LttTime* end) } } } + + +/** + * Function to add/remove event hooks for state + * @param main_win the main window the viewer belongs to. + */ + +void stateAddEventHooks(mainWindow *main_win ) +{ + lttv_state_add_event_hooks((LttvTracesetState*)main_win->traceset_context); +} + +void stateRemoveEventHooks(mainWindow *main_win ) +{ + lttv_state_remove_event_hooks((LttvTracesetState*)main_win->traceset_context); +} + + +/** + * Function to add/remove event hooks for stats + * @param main_win the main window the viewer belongs to. + */ + +void statsAddEventHooks(mainWindow *main_win ) +{ + lttv_stats_add_event_hooks((LttvTracesetStats*)main_win->traceset_context); +} + +void statsRemoveEventHooks(mainWindow *main_win ) +{ + lttv_stats_remove_event_hooks((LttvTracesetStats*)main_win->traceset_context); +} + +/** + * Function to get the stats of the traceset + * @param main_win the main window the viewer belongs to. + */ + +LttvTracesetStats* getTracesetStats(mainWindow *main_win) +{ + return (LttvTracesetStats*)main_win->traceset_context; +}