]> git.ipfire.org Git - thirdparty/chrony.git/blame - smooth.h
conf: rework allow/deny parser
[thirdparty/chrony.git] / smooth.h
CommitLineData
7f45eb79
ML
1/*
2 chronyd/chronyc - Programs for keeping computer clocks accurate.
3
4 **********************************************************************
5 * Copyright (C) Miroslav Lichvar 2015
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of version 2 of the GNU General Public License as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 *
20 **********************************************************************
21
22 =======================================================================
23
24 This module implements time smoothing.
25 */
26
27#ifndef GOT_SMOOTH_H
28#define GOT_SMOOTH_H
29
fb9c2c7d
ML
30#include "reports.h"
31
7f45eb79
ML
32extern void SMT_Initialise(void);
33
34extern void SMT_Finalise(void);
35
36extern int SMT_IsEnabled(void);
37
d0dfa1de 38extern double SMT_GetOffset(struct timespec *now);
7f45eb79 39
d0dfa1de 40extern void SMT_Activate(struct timespec *now);
273da62a 41
d0dfa1de 42extern void SMT_Reset(struct timespec *now);
7f45eb79 43
d0dfa1de 44extern void SMT_Leap(struct timespec *now, int leap);
0abdc2a3 45
d0dfa1de 46extern int SMT_GetSmoothingReport(RPT_SmoothingReport *report, struct timespec *now);
fb9c2c7d 47
7f45eb79 48#endif