X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftime.h;h=14c15d1d237c1d7d184033636750a510a63e8e16;hb=0dee0e75e8a541ad435e9af431c426c53f155d71;hp=7d925d1b48240854672371c1b72aff55231bf9cc;hpb=1a2ceb635b38ebe136f806bd391ff600863e1691;p=lttv.git diff --git a/ltt/branches/poly/ltt/time.h b/ltt/branches/poly/ltt/time.h index 7d925d1b..14c15d1d 100644 --- a/ltt/branches/poly/ltt/time.h +++ b/ltt/branches/poly/ltt/time.h @@ -1,5 +1,6 @@ /* This file is part of the Linux Trace Toolkit trace reading library * Copyright (C) 2003-2004 Michel Dagenais + * 2005 Mathieu Desnoyers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -23,8 +24,6 @@ #include #include -#include - typedef struct _LttTime { unsigned long tv_sec; unsigned long tv_nsec; @@ -248,17 +247,4 @@ static inline LttTime ltt_time_from_uint64(guint64 t1) return res; } -inline LttTime ltt_get_time(LttTrace t, void *ptr) -{ - LttTime output; - - output.tv_sec = - (guint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(ptr): ptr); - ptr += sizeof(guint64); - output.tv_nsec = - (guint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(ptr): ptr); - - return output; -} - #endif // LTT_TIME_H