Move the clock type enumeration into the clock header.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
bbe55fbea4
commit
fd2eb9411f
8
clock.h
8
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.
|
||||
|
|
8
tlv.h
8
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 {
|
||||
|
|
Loading…
Reference in New Issue