mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 14:25:07 -05:00
local: add new driver call to set synchronization status
This will be used to set the kernel adjtimex() variables to allow other applications running on the system to know if the system clock is synchronized and the estimated error and the maximum error.
This commit is contained in:
6
localp.h
6
localp.h
@@ -57,6 +57,9 @@ typedef void (*lcl_OffsetCorrectionDriver)(struct timeval *raw, double *corr, do
|
||||
/* System driver to schedule leap second */
|
||||
typedef void (*lcl_SetLeapDriver)(int leap);
|
||||
|
||||
/* System driver to set the synchronisation status */
|
||||
typedef void (*lcl_SetSyncStatusDriver)(int synchronised, double est_error, double max_error);
|
||||
|
||||
extern void lcl_InvokeDispersionNotifyHandlers(double dispersion);
|
||||
|
||||
extern void
|
||||
@@ -65,6 +68,7 @@ lcl_RegisterSystemDrivers(lcl_ReadFrequencyDriver read_freq,
|
||||
lcl_AccrueOffsetDriver accrue_offset,
|
||||
lcl_ApplyStepOffsetDriver apply_step_offset,
|
||||
lcl_OffsetCorrectionDriver offset_convert,
|
||||
lcl_SetLeapDriver set_leap);
|
||||
lcl_SetLeapDriver set_leap,
|
||||
lcl_SetSyncStatusDriver set_sync_status);
|
||||
|
||||
#endif /* GOT_LOCALP_H */
|
||||
|
||||
Reference in New Issue
Block a user