Patrick Ohly
-
2008-11-10
All global state is now in PtpClock and all stateful modules pass around the same pointer to that:
- net module accesses PtpClock::netPath instead of getting a pointer to it
- RunTimeOpts are part of PtpClock now
This was necessary because the net function needed to invoke other functions which required the pointer. Another benefit is that many functions now only need one pointer argument instead of two and increased consistency (in some modules some functions got ptpClock, others didn't).
Improved (debug) output
- allow CSV stats also in debug mode (because it complements it)
- added name for each clock, to distinguish the two active servos in "both" mode