Re: [Linuxptp-devel] [RFC PATCH v2 05/14] phc2sys: break out pmc code into pmc_common.c

2020-08-29 Thread Richard Cochran
On Tue, Aug 18, 2020 at 02:19:31AM +0300, Vladimir Oltean wrote: > diff --git a/phc2sys.c b/phc2sys.c > index a36cbe071d7d..c4d72bd7d17a 100644 > --- a/phc2sys.c > +++ b/phc2sys.c > @@ -56,18 +56,13 @@ > #include "uds.h" > #include "util.h" > #include "version.h" > +#include "contain.h"

[Linuxptp-devel] [RFC PATCH v2 05/14] phc2sys: break out pmc code into pmc_common.c

2020-08-17 Thread Vladimir Oltean
Move the code for sending various messages to ptp4l via pmc to a common translation module, outside of phc2sys. This makes it available to other programs that want to subscribe to port state change events too, such as ts2phc. This creates a smaller structure within phc2sys_private, which embeds