Skip to content

Commit

Permalink
Move the clock type enumeration into the clock header.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Cochran <[email protected]>
  • Loading branch information
richardcochran committed Apr 3, 2016
1 parent bbe55fb commit fd2eb94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 0 additions & 8 deletions tlv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fd2eb94

Please sign in to comment.