From fd2eb9411feec13e9ea94b3ee9d941eb14f0abcb Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 3 Oct 2015 10:56:52 +0200 Subject: [PATCH] Move the clock type enumeration into the clock header. Signed-off-by: Richard Cochran --- clock.h | 8 ++++++++ tlv.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/clock.h b/clock.h index e096dfa..d866762 100644 --- a/clock.h +++ b/clock.h @@ -34,6 +34,14 @@ struct ptp_message; /*forward declaration*/ /** Opaque type. */ struct clock; +enum clock_type { + CLOCK_TYPE_ORDINARY = 0x8000, + CLOCK_TYPE_BOUNDARY = 0x4000, + CLOCK_TYPE_P2P = 0x2000, + CLOCK_TYPE_E2E = 0x1000, + CLOCK_TYPE_MANAGEMENT = 0x0800, +}; + /** * Obtains a reference to the best foreign master of a clock. * @param c The clock instance. diff --git a/tlv.h b/tlv.h index 504e269..c345afe 100644 --- a/tlv.h +++ b/tlv.h @@ -213,14 +213,6 @@ struct port_properties_np { struct PTPText interface; } PACKED; -enum clock_type { - CLOCK_TYPE_ORDINARY = 0x8000, - CLOCK_TYPE_BOUNDARY = 0x4000, - CLOCK_TYPE_P2P = 0x2000, - CLOCK_TYPE_E2E = 0x1000, - CLOCK_TYPE_MANAGEMENT = 0x0800, -}; - #define PROFILE_ID_LEN 6 struct mgmt_clock_description {