Skip to content

Commit

Permalink
port: Publish the method for creating signaling messages.
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Cochran <[email protected]>
  • Loading branch information
richardcochran committed May 24, 2020
1 parent 0695d48 commit 8f523e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions port.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ struct port *port_open(const char *phc_device,
struct interface *interface,
struct clock *clock);

struct ptp_message *port_signaling_construct(struct port *p,
const struct PortIdentity *tpid);

/**
* Returns a port's current state.
* @param port A port instance.
Expand Down
4 changes: 2 additions & 2 deletions port_signaling.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const struct PortIdentity wildcard_pid = {
.portNumber = 0xffff,
};

static struct ptp_message *port_signaling_construct(struct port *p,
struct PortIdentity *tpid)
struct ptp_message *port_signaling_construct(struct port *p,
const struct PortIdentity *tpid)
{
struct ptp_message *msg;

Expand Down

0 comments on commit 8f523e4

Please sign in to comment.