void lttv_tracefile_context_remove_hooks_by_id(LttvTracefileContext *self,
unsigned i);
-/* A LttvTraceHook has two arrays of LttvTraceHookByFacility,
- * indexed by facility ID and a simple array used to walk all the hooks */
typedef struct _LttvTraceHook {
LttvHook h;
- guint id;
- LttField *f1;
- LttField *f2;
- LttField *f3;
+ guint id; /* id of the event associated with this hook */
+ struct marker_field *f1;
+ struct marker_field *f2;
+ struct marker_field *f3;
gpointer hook_data;
-} LttvTraceHookByFacility;
+} LttvTraceHook;
/* Get the head of marker list correcponding to the given trace hook.
*/
-struct marker_info *lttv_trace_hook_get_marker(LttvTraceHook *th);
+struct marker_info *lttv_trace_hook_get_marker(LttTrace *t, LttvTraceHook *th);
void lttv_trace_hook_destroy(LttvTraceHook *th);