&begin_pos,
NULL);
self->event_hooks = lttv_hooks_new();
+ self->tmpState = g_new(LttvTraceState *, 1);
+
for(i = 0 ; i < nb_trace ; i++) {
tc = LTTV_TRACESET_CONTEXT_GET_CLASS(self)->new_trace_context(self);
self->traces[i] = tc;
struct bt_ctf_event *bt_event;
LttvEvent event;
- /* TODO ybrosseau 2012-03-16: Put in really in the traceset */
- LttvTraceState state;
while(TRUE) {
count++;
event.bt_event = bt_event;
- event.state = &state;
-
+ /* TODO ybrosseau 2012-04-01: use bt_ctf_get_trace_handle
+ to retrieve the right state container */
+ event.state = self->tmpState;
+
lttv_hooks_call(self->event_hooks, &event);
if(bt_iter_next(bt_ctf_get_iter(self->iter)) < 0) {
#define LTTVFILTER_TYPE_DEFINED
#endif
+typedef struct _LttvTraceState LttvTraceState;
+
+
#define LTTV_TRACESET_CONTEXT_TYPE (lttv_traceset_context_get_type ())
#define LTTV_TRACESET_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LTTV_TRACESET_CONTEXT_TYPE, LttvTracesetContext))
#define LTTV_TRACESET_CONTEXT_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), LTTV_TRACESET_CONTEXT_TYPE, LttvTracesetContextClass))
struct bt_ctf_iter *iter;
/* TODO ybrosseau: Added for babeltrace proto */
LttvHooks *event_hooks;
+ LttvTraceState *tmpState; /* Remove when we have the state in LttvTrace */
LttvTracesetContextPosition *sync_position; /* position at which to sync the
trace context */