X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fevent.h;h=c3500120b8b49ba8bc01fd15dc9c05e554d093f2;hb=c02ea99f196ff9bf99335fcf0cae4efc0e28f051;hp=4cee97133a0106767817540f0b8791657c6c83e5;hpb=f95bc8309fe113855266f4445874248b6a285062;p=lttv.git diff --git a/ltt/branches/poly/ltt/event.h b/ltt/branches/poly/ltt/event.h index 4cee9713..c3500120 100644 --- a/ltt/branches/poly/ltt/event.h +++ b/ltt/branches/poly/ltt/event.h @@ -21,12 +21,15 @@ #include +LttEvent *ltt_event_new(); + +void ltt_event_destroy(LttEvent *event); + /* Events and their content, including the raw data, are only valid until reading another event from the same tracefile. Indeed, since event reading is critical to the performance, the memory associated with an event may be reused at each read. */ - /* Obtain the trace unique integer id associated with the type of this event */ @@ -69,6 +72,14 @@ void ltt_event_position_get(LttEventPosition *ep, void ltt_event_position_set(LttEventPosition *ep, unsigned block_number, unsigned index_in_block); +gint ltt_event_position_compare(const LttEventPosition *ep1, + const LttEventPosition *ep2); + +gint ltt_event_event_position_compare(const LttEvent *event, + const LttEventPosition *ep); + +void ltt_event_position_copy(LttEventPosition *dest, + const LttEventPosition *src); /* CPU id of the event */