projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update FSF address
[lttv.git]
/
lttv
/
modules
/
gui
/
lttvwindow
/
lttvwindow
/
init_module.c
diff --git
a/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
b/lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
index cb3f3dc4cee1522ded2f8768d7451f73ec0bc2ba..94668d207a88eacf39c66e3d96b3f67df86c34e2 100644
(file)
--- a/
lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
+++ b/
lttv/modules/gui/lttvwindow/lttvwindow/init_module.c
@@
-12,8
+12,8
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston,
- * MA 0211
1-1307
, USA.
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston,
+ * MA 0211
0-1301
, USA.
*/
/*
*/
/*
@@
-34,9
+34,11
@@
#include <lttv/hook.h>
#include <lttv/option.h>
#include <lttv/module.h>
#include <lttv/hook.h>
#include <lttv/option.h>
#include <lttv/module.h>
-#include <lttv/tracecontext.h>
+
#include <lttv/state.h>
#include <lttv/state.h>
+#ifdef BABEL_CLEANUP
#include <lttv/stats.h>
#include <lttv/stats.h>
+#endif /* BABEL_CLEANUP */
#include <lttvwindow/menu.h>
#include <lttvwindow/toolbar.h>
#include <lttvwindow/lttvwindowtraces.h>
#include <lttvwindow/menu.h>
#include <lttvwindow/toolbar.h>
#include <lttvwindow/lttvwindowtraces.h>
@@
-46,7
+48,6
@@
#include <lttvwindow/mainwindow.h>
#include <lttvwindow/mainwindow-private.h>
#include "callbacks.h"
#include <lttvwindow/mainwindow.h>
#include <lttvwindow/mainwindow-private.h>
#include "callbacks.h"
-#include <ltt/trace.h>
__EXPORT LttvTraceInfo
__EXPORT LttvTraceInfo
@@
-88,6
+89,7
@@
static GSList *g_init_trace = NULL;
static char *a_trace;
//static char g_init_trace[PATH_MAX] = "";
static char *a_trace;
//static char g_init_trace[PATH_MAX] = "";
+static gboolean a_live;
void lttv_trace_option(void *hook_data)
void lttv_trace_option(void *hook_data)
@@
-174,13
+176,19
@@
static void init() {
"pathname of the directory containing the trace",
LTTV_OPT_STRING, &a_trace, lttv_trace_option, NULL);
"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);
g_assert((main_hooks = *(value.v_pointer)) != NULL);
lttv_hooks_add(main_hooks, window_creation_hook, NULL, LTTV_PRIO_DEFAULT);
retval= lttv_iattribute_find_by_path(attributes, "hooks/main/before",
LTTV_POINTER, &value);
g_assert(retval);
g_assert((main_hooks = *(value.v_pointer)) != NULL);
lttv_hooks_add(main_hooks, window_creation_hook, NULL, LTTV_PRIO_DEFAULT);
-
+#ifdef BABEL_CLEANUP
{
/* Register state calculator */
LttvHooks *hook_adder = lttv_hooks_new();
{
/* Register state calculator */
LttvHooks *hook_adder = lttv_hooks_new();
@@
-220,6
+228,7
@@
static void init() {
after_request, NULL, NULL,
hook_adder, hook_remover);
}
after_request, NULL, NULL,
hook_adder, hook_remover);
}
+#endif /* BABEL_CLEANUP */
}
void
}
void
@@
-243,6
+252,7
@@
static void destroy_walk(gpointer data, gpointer user_data)
static void destroy() {
lttv_option_remove("trace");
static void destroy() {
lttv_option_remove("trace");
+ lttv_option_remove("live");
lttv_hooks_remove_data(main_hooks, window_creation_hook, NULL);
lttv_hooks_remove_data(main_hooks, window_creation_hook, NULL);
@@
-259,4
+269,4
@@
static void destroy() {
LTTV_MODULE("lttvwindow", "Viewer main window", \
"Viewer with multiple windows, tabs and panes for graphical modules", \
LTTV_MODULE("lttvwindow", "Viewer main window", \
"Viewer with multiple windows, tabs and panes for graphical modules", \
- init, destroy, "
stats", "option
")
+ init, destroy, "
option","state
")
This page took
0.027121 seconds
and
4
git commands to generate.