X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=trunk%2Flttv%2Fltt%2Fevent.h;h=8293d15fcf59c59c010604d2527a8037e95a034c;hb=27828bc1b0010ee87c2f68e31fb77fd4ae39fa6b;hp=d737a469b5a841be3759046a34192d48ec5998dd;hpb=2fc874ab26ee6c66eb4c2b9480bb418240d24b03;p=lttv.git diff --git a/trunk/lttv/ltt/event.h b/trunk/lttv/ltt/event.h index d737a469..8293d15f 100644 --- a/trunk/lttv/ltt/event.h +++ b/trunk/lttv/ltt/event.h @@ -1,4 +1,4 @@ - +#ifndef _LTT_EVENT_H #define _LTT_EVENT_H #include @@ -47,12 +47,12 @@ struct LttEventPosition { uint64_t tsc; /* Current timestamp counter */ }; -static inline guint16 ltt_event_id(struct LttEvent *event) +static inline guint16 ltt_event_id(const struct LttEvent *event) { return event->event_id; } -static inline LttTime ltt_event_time(struct LttEvent *event) +static inline LttTime ltt_event_time(const struct LttEvent *event) { return event->event_time; }