X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fevent.h;h=f13710754bfd2124335188f8937bf90b7a125b82;hb=63c35f6c3a742bb0bcd558c4899221231bcb05d7;hp=2b2eab2222bd673a76c2e6307b2193f6c9be5334;hpb=2a74fbf4e7e641f94517b3e996c674291248bb1d;p=lttv.git diff --git a/ltt/branches/poly/ltt/event.h b/ltt/branches/poly/ltt/event.h index 2b2eab22..f1371075 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 */ @@ -111,13 +114,13 @@ unsigned ltt_event_field_union_member(LttEvent *e, LttField *f); /* These functions extract data from an event after architecture specific conversions. */ -unsigned ltt_event_get_unsigned(LttEvent *e, LttField *f); +guint32 ltt_event_get_unsigned(LttEvent *e, LttField *f); -int ltt_event_get_int(LttEvent *e, LttField *f); +gint32 ltt_event_get_int(LttEvent *e, LttField *f); -unsigned long ltt_event_get_long_unsigned(LttEvent *e, LttField *f); +guint64 ltt_event_get_long_unsigned(LttEvent *e, LttField *f); -long int ltt_event_get_long_int(LttEvent *e, LttField *f); +gint64 ltt_event_get_long_int(LttEvent *e, LttField *f); float ltt_event_get_float(LttEvent *e, LttField *f);