projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial port of the detailed event view
[lttv.git]
/
lttv
/
modules
/
gui
/
lttvwindow
/
lttvwindow
/
lttvwindow.c
diff --git
a/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c
b/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c
index acb968bed7b3e3969f5701b8d23e282daa9d3857..d76ef62953f73388e824b382de565041c1a5dc5a 100644
(file)
--- a/
lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c
+++ b/
lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c
@@
-35,10
+35,12
@@
#include <ltt/ltt.h>
#include <lttv/lttv.h>
#include <lttv/state.h>
#include <ltt/ltt.h>
#include <lttv/lttv.h>
#include <lttv/state.h>
+#include <lttv/traceset.h>
+#ifdef BABEL_CLEANUP
#include <lttv/stats.h>
#include <lttv/stats.h>
-#
include <lttv/tracecontext.h>
+#
endif /* BABEL_CLEANUP */
#include <lttvwindow/mainwindow.h>
#include <lttvwindow/mainwindow.h>
-#include <lttvwindow/mainwindow-private.h>
+#include <lttvwindow/mainwindow-private.h>
#include <lttvwindow/lttvwindow.h>
#include <lttvwindow/toolbar.h>
#include <lttvwindow/menu.h>
#include <lttvwindow/lttvwindow.h>
#include <lttvwindow/toolbar.h>
#include <lttvwindow/menu.h>
@@
-115,13
+117,13
@@
void set_current_time(Tab *tab, const LttTime *current_time)
* This is called whenever the current time value changes.
*/
* This is called whenever the current time value changes.
*/
-void set_current_position(Tab *tab, const LttvTraceset
Context
Position *pos)
+void set_current_position(Tab *tab, const LttvTracesetPosition *pos)
{
LttvAttributeValue value;
LttvHooks * tmp;
gboolean retval;
{
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);
retval= lttv_iattribute_find_by_path(tab->attributes,
"hooks/updatecurrentposition", LTTV_POINTER, &value);
@@
-474,7
+476,7
@@
__EXPORT void lttvwindow_unregister_time_window_notify(Tab *tab,
* @param hook hook function of the viewer.
* @param hook_data hook data associated with the hook function.
*/
* @param hook hook function of the viewer.
* @param hook_data hook data associated with the hook function.
*/
-__EXPORT void lttvwindow_register_time
_
span_notify(Tab *tab,
+__EXPORT void lttvwindow_register_timespan_notify(Tab *tab,
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
@@
-499,7
+501,7
@@
__EXPORT void lttvwindow_register_time_span_notify(Tab *tab,
* @param hook_data hook data associated with the hook function.
*/
* @param hook_data hook data associated with the hook function.
*/
-__EXPORT void lttvwindow_unregister_time
_
span_notify(Tab *tab,
+__EXPORT void lttvwindow_unregister_timespan_notify(Tab *tab,
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
LttvHook hook, gpointer hook_data)
{
LttvAttributeValue value;
@@
-1008,7
+1010,7
@@
__EXPORT void lttvwindow_report_current_time(Tab *tab,
*/
__EXPORT void lttvwindow_report_current_position(Tab *tab,
*/
__EXPORT void lttvwindow_report_current_position(Tab *tab,
- LttvTraceset
Context
Position *pos)
+ LttvTracesetPosition *pos)
{
current_position_change_manager(tab, pos);
}
{
current_position_change_manager(tab, pos);
}
@@
-1214,7
+1216,7
@@
void lttvwindow_report_filter(Tab *tab, LttvFilter *filter)
lttv_hooks_call(tmp, filter);
}
lttv_hooks_call(tmp, filter);
}
-
+#ifdef BABEL_CLEANUP
/**
* Function to get the stats of the traceset
/**
* 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;
}
{
return tab->traceset_info->traceset_context;
}
+#endif /*BABEL_CLEANUP*/
-__EXPORT LttvTraceset
Context* lttvwindow_get_traceset_contex
t(Tab *tab)
+__EXPORT LttvTraceset
*lttvwindow_get_tracese
t(Tab *tab)
{
{
-
return (LttvTracesetContext*)tab->traceset_info->traceset_contex
t;
+
return tab->traceset_info->tracese
t;
}
}
-
void events_request_free(EventsRequest *events_request)
{
void events_request_free(EventsRequest *events_request)
{
+#ifdef BABEL_CLEANUP
if(events_request == NULL) return;
if(events_request->start_position != NULL)
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);
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;
__EXPORT GtkWidget *main_window_get_widget(Tab *tab)
{
return tab->mw->mwindow;
This page took
0.025941 seconds
and
4
git commands to generate.