+/*****************************************************************************
+ * Function name
+ * ltt_event_event_position_compare : compare two positions, one in event,
+ * other in position opaque structure.
+ * Input params
+ * event : a pointer to event structure
+ * ep : a pointer to event's position structure
+ * Return
+ * -1 is event < ep
+ * 1 if event > ep
+ * 0 if event == ep
+ ****************************************************************************/
+
+gint ltt_event_event_position_compare(const LttEvent *event,
+ const LttEventPosition *ep)
+{
+ if(event->tf != ep->tf)
+ g_error("ltt_event_position_compare on different tracefiles makes no sense");
+ if(e->which_block < ep->block_num)
+ return -1;
+ if(e->which_block > ep->block_num)
+ return 1;
+ if(e->which_event < ep->event_num)
+ return -1;
+ if(e->which_event > ep->event_num)
+ return 1;
+ return 0;
+}
+
+
+