File: rtc.h

package info (click to toggle)
chrony 1.10-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,504 kB
  • ctags: 2,064
  • sloc: ansic: 15,081; sh: 152; makefile: 107
file content (39 lines) | stat: -rw-r--r-- 968 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
  $Header: /home/richard/myntp/chrony/chrony-1.02/RCS/rtc.h,v 1.6 1998/06/08 19:38:43 richard Exp $

  =======================================================================

  chronyd/chronyc - Programs for keeping computer clocks accurate.

  Copyright (C) 1997-1999 Richard P. Curnow
  All rights reserved.

  For conditions of use, refer to the file LICENCE.

  =======================================================================

  */

#ifndef GOT_RTC_H
#define GOT_RTC_H

#include "reports.h"

extern void RTC_Initialise(void);
extern void RTC_Finalise(void);
extern void RTC_TimePreInit(void);
extern void RTC_TimeInit(void (*after_hook)(void *), void *anything);
extern void RTC_StartMeasurements(void);
extern int  RTC_GetReport(RPT_RTC_Report *report);

#define RTC_ST_OK 0
#define RTC_ST_NODRV 1
#define RTC_ST_BADFILE 2

extern int RTC_WriteParameters(void);

extern int RTC_Trim(void);

extern void RTC_CycleLogFile(void);

#endif /* GOT_RTC_H */