struct marker_field;
+struct LttField {
+ int offset;
+ int size;
+};
+
/*
* Structure LttEvent and LttEventPosition must begin with the _exact_ same
* fields in the exact same order. LttEventPosition is a parent of LttEvent.
LttTime event_time;
void *data; /* event data */
+ GArray *fields_offsets; /* current field offsets table */
guint data_size;
guint event_size; /* event_size field of the header :
used to verify data_size from marker. */
of which are user accessible: block number and event index
within the block. */
-void ltt_event_position(LttEvent *e, LttEventPosition *ep);
+void ltt_event_position(const LttEvent *e, LttEventPosition *ep);
LttEventPosition * ltt_event_position_new();
return e->tsc;
}
+static inline struct LttField *ltt_event_field(const LttEvent *e, int index)
+{
+ return &g_array_index(e->fields_offsets, struct LttField, index);
+}
+
#endif //_LTT_EVENT_H