projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix hooks to return a gint instead of a gboolean : makes returning 2 possible
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
lttv
/
tracecontext.c
diff --git
a/ltt/branches/poly/lttv/lttv/tracecontext.c
b/ltt/branches/poly/lttv/lttv/tracecontext.c
index b22f06eb50ed93a4431f119861ed88a0ce987129..8634b1be564dc835ebddcac73495b71e586e6670 100644
(file)
--- a/
ltt/branches/poly/lttv/lttv/tracecontext.c
+++ b/
ltt/branches/poly/lttv/lttv/tracecontext.c
@@
-703,7
+703,7
@@
guint lttv_process_traceset_middle(LttvTracesetContext *self,
//enum read_state last_read_state = LAST_NONE;
//enum read_state last_read_state = LAST_NONE;
- g
boolean last_ret = FALSE
; /* return value of the last hook list called */
+ g
int last_ret = 0
; /* return value of the last hook list called */
/* Get the next event from the pqueue, call its hooks,
reinsert in the pqueue the following event from the same tracefile
/* Get the next event from the pqueue, call its hooks,
reinsert in the pqueue the following event from the same tracefile
@@
-772,7
+772,7
@@
guint lttv_process_traceset_middle(LttvTracesetContext *self,
last_ret = lttv_hooks_call_merge(tfc->event, tfc,
lttv_hooks_by_id_get(tfc->event_by_id, id), tfc);
last_ret = lttv_hooks_call_merge(tfc->event, tfc,
lttv_hooks_by_id_get(tfc->event_by_id, id), tfc);
- if(unlikely(
read
_ret == 2)) {
+ if(unlikely(
last
_ret == 2)) {
/* This is a case where we want to stay at this position and stop read. */
g_tree_insert(pqueue, tfc, tfc);
return count - 1;
/* This is a case where we want to stay at this position and stop read. */
g_tree_insert(pqueue, tfc, tfc);
return count - 1;
This page took
0.025841 seconds
and
4
git commands to generate.