Hi, I add the PHC functionality in libptpmgmt https://sf.net/p/libptpmgmt, https://github.com/erezgeva/libptpmgmt
You can now integrate "phc_ctl" functionality in your application or use them in scripts. Erez On Thu, 2 Jun 2022 at 15:25, Erez <erezge...@gmail.com> wrote: > > > On Thu, 2 Jun 2022 at 15:01, Miroslav Lichvar <mlich...@redhat.com> wrote: > >> On Thu, Jun 02, 2022 at 02:28:17PM +0200, Erez wrote: >> > Richard needs to elaborate on this. >> >> Right. If he doesn't have time for it anymore, it would be good to >> give other people commit access, at least to some specific areas. >> >> > I do mention that the linuxptp project uses GPL and opposes using LGPL. >> I >> > did ask. >> > So libraries would need a new project anyway, one that uses LGPL for >> > libraries. >> >> Hm, good point. >> >> > I think I will add the PHC functions to my library. >> > I do have a PtpClock class. >> > Just did not try to implement a phc2sys and phc_ctl yet. >> >> To me that sounds like a lot of work and there is no guarantee users >> would be willing to switch. It might be easier to make a fork. >> > > I mean a library with the PHC functionality that phc_ctl and phc2sys uses. > The best way to test the library is to clone the applications on top of > the library. > As I did with the pmc tool. > My target was to provide the functionality in a library. Not to replace or > rewrite linuxptp applications. > > Another target I set for the library is to support scripting. > Users can query the ptp4l directly from a Python or Tcl script. > No need to use the system call and parse the result. > With the system overhead that comes with. > > As phc2sys does run slowly, it can be written with a script language. > > Users can keep using linuxptp applications. Write new applications with > the library or integrate it in their own project. > We can fork linuxptp, but we can not make LGPL libraries. > > Erez > > >> -- >> Miroslav Lichvar >> >>
_______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel