Move the clock type enumeration into the clock header.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2015-10-03 10:56:52 +02:00
parent bbe55fbea4
commit fd2eb9411f
2 changed files with 8 additions and 8 deletions

View File

@ -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.

8
tlv.h
View File

@ -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 {