X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fevent.h;h=c3500120b8b49ba8bc01fd15dc9c05e554d093f2;hb=dfb73233deab2c53c00874997d6c03110588c5ee;hp=88c036249e9328bf280046d6804b87a3ffdad616;hpb=96da5c0d83846884f7be822410209325a2dd0e51;p=lttv.git diff --git a/ltt/branches/poly/ltt/event.h b/ltt/branches/poly/ltt/event.h index 88c03624..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 */ @@ -74,6 +77,10 @@ gint ltt_event_position_compare(const LttEventPosition *ep1, 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 */ unsigned ltt_event_cpu_id(LttEvent *e);