On Mon, Mar 24, 2014 at 09:53:19AM +0100, Jiri Benc wrote:
> diff --git a/port.h b/port.h
> index e781f2445097..9d1ddc9e94a3 100644
> --- a/port.h
> +++ b/port.h
> @@ -93,6 +93,18 @@ enum fsm_event port_event(struct port *port, int fd_index);
>  int port_forward(struct port *p, struct ptp_message *msg, int msglen);
>  
>  /**
> + * Prepare message for transmission and send it to a given port. Note that
> + * a single message cannot be sent several times using this function, that
> + * would lead to corrupted data being sent. Use msg_pre_send and
> + * port_forward if you need to send single message to several ports.
> + * @param p        A pointer previously obtained via port_open().
> + * @param msg      The message to send.
> + * @param event    0 if the message is a general message, 1 if it is an
> + *                 event message.

Actually, we might also pass 2 in 'event'. Maybe the text should read,
"one of the 'transport_event' enumerated values" or something like that.

Otherwise, I couldn't find anything wrong with this patch.

Thanks,
Richard

------------------------------------------------------------------------------
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to