return 0;
}
+gint lttv_state_hook_add_event_hooks(void *hook_data, void *call_data)
+{
+ LttvTracesetState *tss = (LttvTracesetState*)(call_data);
+
+ lttv_state_add_event_hooks(tss);
+
+ return 0;
+}
void lttv_state_add_event_hooks(LttvTracesetState *self)
{
}
}
+gint lttv_state_hook_remove_event_hooks(void *hook_data, void *call_data)
+{
+ LttvTracesetState *tss = (LttvTracesetState*)(call_data);
+
+ lttv_state_remove_event_hooks(tss);
+
+ return 0;
+}
void lttv_state_remove_event_hooks(LttvTracesetState *self)
{
LttvTraceHook hook_start, hook_end;
- lttv_state_add_event_hooks(self);
-
nb_trace = lttv_traceset_number(traceset);
for(i = 0 ; i < nb_trace ; i++) {
ts = (LttvTraceState *)self->parent.traces[i];
tfs->parent.event_by_id, hook_end.id), hook_end.h, NULL);
}
}
-
- lttv_state_remove_event_hooks(self);
}
gint lttv_state_save_hook_remove_event_hooks(void *hook_data, void *call_data)
typedef struct _LttvTracefileState LttvTracefileState;
typedef struct _LttvTracefileStateClass LttvTracefileStateClass;
+gint lttv_state_hook_add_event_hooks(void *hook_data, void *call_data);
void lttv_state_add_event_hooks(LttvTracesetState *self);
+gint lttv_state_hook_remove_event_hooks(void *hook_data, void *call_data);
void lttv_state_remove_event_hooks(LttvTracesetState *self);
void lttv_state_save_add_event_hooks(LttvTracesetState *self);
LttvAttributeValue val;
- lttv_state_add_event_hooks(&self->parent);
-
nb_trace = lttv_traceset_number(traceset);
for(i = 0 ; i < nb_trace ; i++) {
ts = (LttvTraceStats *)self->parent.parent.traces[i];
g_array_free(before_hooks, TRUE);
g_array_free(after_hooks, TRUE);
}
- lttv_state_remove_event_hooks(&self->parent);
}