X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fevent.h;h=e91875e548f080ef9cc2a7c12bd7da1062422bdb;hb=c1161b105fa872926832df9f1989c34cfd886825;hp=f243851f6033f84c0ee4ad2f921ab699f32ecb14;hpb=743e50fd0105daeea4804d68989965399bf3a4d3;p=lttv.git diff --git a/ltt/branches/poly/ltt/event.h b/ltt/branches/poly/ltt/event.h index f243851f..e91875e5 100644 --- a/ltt/branches/poly/ltt/event.h +++ b/ltt/branches/poly/ltt/event.h @@ -1,5 +1,6 @@ /* This file is part of the Linux Trace Toolkit trace reading library * Copyright (C) 2003-2004 Michel Dagenais + * 2006 Mathieu Desnoyers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -68,6 +69,9 @@ LttEventPosition * ltt_event_position_new(); void ltt_event_position_get(LttEventPosition *ep, LttTracefile **tf, guint *block, guint *offset, guint64 *tsc); +void ltt_event_position_set(LttEventPosition *ep, LttTracefile *tf, + guint block, guint offset, guint64 tsc); + gint ltt_event_position_compare(const LttEventPosition *ep1, const LttEventPosition *ep2); @@ -98,6 +102,7 @@ guint64 ltt_event_field_element_number(LttEvent *e, LttField *f); LttField *ltt_event_field_element_select(LttEvent *e, LttField *f, gulong i); +off_t ltt_event_field_offset(LttEvent *e, LttField *f); /* A union is like a structure except that only a single member at a time is present depending on the specific event instance. This function tells