summaryrefslogtreecommitdiff
path: root/local.h
diff options
context:
space:
mode:
authorVincent Blut <vincent.debian@free.fr>2021-04-22 17:27:01 +0200
committerVincent Blut <vincent.debian@free.fr>2021-04-22 17:27:01 +0200
commit40a31d6f7c2f62ed5b3309b998f250b23cf10783 (patch)
treec3c12b7504870e0ff6ba48141faa966678c6283f /local.h
parentf3aaaa0e178dde6a6110b734f1c653791d85f89f (diff)
New upstream version 4.1-pre1
Diffstat (limited to 'local.h')
-rw-r--r--local.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/local.h b/local.h
index 7ceb76a..63d80e9 100644
--- a/local.h
+++ b/local.h
@@ -149,7 +149,7 @@ extern void LCL_AccumulateDeltaFrequency(double dfreq);
forwards (i.e. it is currently slow of true time). Provided is also
a suggested correction rate (correction time * offset). */
-extern void LCL_AccumulateOffset(double offset, double corr_rate);
+extern int LCL_AccumulateOffset(double offset, double corr_rate);
/* Routine to apply an immediate offset by doing a sudden step if
possible. (Intended for use after an initial estimate of offset has
@@ -171,7 +171,7 @@ extern void LCL_NotifyLeap(int leap);
/* Perform the combination of modifying the frequency and applying
a slew, in one easy step */
-extern void LCL_AccumulateFrequencyAndOffset(double dfreq, double doffset, double corr_rate);
+extern int LCL_AccumulateFrequencyAndOffset(double dfreq, double doffset, double corr_rate);
/* Routine to read the system precision as a log to base 2 value. */
extern int LCL_GetSysPrecisionAsLog(void);
@@ -197,6 +197,9 @@ extern void LCL_Finalise(void);
to a timezone problem. */
extern int LCL_MakeStep(void);
+/* Routine to cancel the outstanding system clock correction */
+extern void LCL_CancelOffsetCorrection(void);
+
/* Check if the system driver supports leap seconds, i.e. LCL_SetSystemLeap
does something */
extern int LCL_CanSystemLeap(void);