X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Finit_module.c;h=5b8289570066bb12da936fdae51a7a92495ccee7;hb=afdfc849a09e891b01d1a068319a36472ec991cb;hp=cb3f3dc4cee1522ded2f8768d7451f73ec0bc2ba;hpb=dced178e9dd592d1c415b82a03fafb5dfbdafa1c;p=lttv.git diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c b/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c index cb3f3dc4..5b828957 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c @@ -88,6 +88,7 @@ static GSList *g_init_trace = NULL; static char *a_trace; //static char g_init_trace[PATH_MAX] = ""; +static gboolean a_live; void lttv_trace_option(void *hook_data) @@ -124,7 +125,7 @@ static gboolean window_creation_hook(void *hook_data, void *call_data) add_pixmap_directory ("../modules/gui/main/pixmaps"); /* First window, use command line trace */ - create_main_window_with_trace_list(g_init_trace); + create_main_window_with_trace_list(g_init_trace, a_live); gtk_main (); @@ -174,6 +175,12 @@ static void init() { "pathname of the directory containing the trace", LTTV_OPT_STRING, &a_trace, lttv_trace_option, NULL); + a_live = FALSE; + lttv_option_add("live", 0, + "define if the traceset is receiving live informations", + "", + LTTV_OPT_NONE, &a_live, NULL, NULL); + retval= lttv_iattribute_find_by_path(attributes, "hooks/main/before", LTTV_POINTER, &value); g_assert(retval); @@ -243,6 +250,7 @@ static void destroy_walk(gpointer data, gpointer user_data) static void destroy() { lttv_option_remove("trace"); + lttv_option_remove("live"); lttv_hooks_remove_data(main_hooks, window_creation_hook, NULL); @@ -259,4 +267,4 @@ static void destroy() { LTTV_MODULE("lttvwindow", "Viewer main window", \ "Viewer with multiple windows, tabs and panes for graphical modules", \ - init, destroy, "stats", "option") + init, destroy, "stats", "option", "sync")