]> git.ipfire.org Git - thirdparty/chrony.git/blob - rtc.h
conf: rework allow/deny parser
[thirdparty/chrony.git] / rtc.h
1 /*
2 chronyd/chronyc - Programs for keeping computer clocks accurate.
3
4 **********************************************************************
5 * Copyright (C) Richard P. Curnow 1997-2002
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 */
25
26 #ifndef GOT_RTC_H
27 #define GOT_RTC_H
28
29 #include "reports.h"
30
31 extern void RTC_Initialise(int initial_set);
32 extern void RTC_Finalise(void);
33 extern void RTC_TimeInit(void (*after_hook)(void *), void *anything);
34 extern void RTC_StartMeasurements(void);
35 extern int RTC_GetReport(RPT_RTC_Report *report);
36
37 #define RTC_ST_OK 0
38 #define RTC_ST_NODRV 1
39 #define RTC_ST_BADFILE 2
40
41 extern int RTC_WriteParameters(void);
42
43 extern int RTC_Trim(void);
44
45 #endif /* GOT_RTC_H */