port: Publish the method for creating signaling messages.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2020-04-13 19:09:16 -07:00
parent 0695d48332
commit 8f523e4d62
2 changed files with 5 additions and 2 deletions

3
port.h
View File

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

View File

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