The definition of struct hw_timestamp is not used anywhere in msg.c, but is used in various places that care about the internal time representation. Move this definition to tmv.h as a more natural home.
Signed-off-by: Michael Brown <mbr...@fensystems.co.uk> --- msg.h | 13 ------------- tmv.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/msg.h b/msg.h index 12e6ce8..4f78ccb 100644 --- a/msg.h +++ b/msg.h @@ -55,19 +55,6 @@ #define TIME_TRACEABLE (1<<4) #define FREQ_TRACEABLE (1<<5) -enum timestamp_type { - TS_SOFTWARE, - TS_HARDWARE, - TS_LEGACY_HW, - TS_ONESTEP, -}; - -struct hw_timestamp { - enum timestamp_type type; - struct timespec ts; - struct timespec sw; -}; - enum controlField { CTL_SYNC, CTL_DELAY_REQ, diff --git a/tmv.h b/tmv.h index eff172f..519dbc0 100644 --- a/tmv.h +++ b/tmv.h @@ -27,6 +27,19 @@ #define NS_PER_SEC 1000000000LL +enum timestamp_type { + TS_SOFTWARE, + TS_HARDWARE, + TS_LEGACY_HW, + TS_ONESTEP, +}; + +struct hw_timestamp { + enum timestamp_type type; + struct timespec ts; + struct timespec sw; +}; + /** * We implement the time value as a 64 bit signed integer containing * nanoseconds. Using this representation, we could really spare the -- 2.9.5 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel