File: rtc_linux.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 (40 lines) | stat: -rw-r--r-- 1,057 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
40
/*
  $Header: /home/richard/myntp/chrony/chrony-1.02/RCS/rtc_linux.h,v 1.7 1998/07/27 21:24:06 richard Exp $

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

  chronyd/chronyc - Programs for keeping computer clocks accurate.

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

  For conditions of use, refer to the file LICENCE.

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

  */

#ifndef _GOT_RTC_LINUX_H
#define _GOT_RTC_LINUX_H

#include "reports.h"

#if defined LINUX

extern int RTC_Linux_Initialise();
extern void RTC_Linux_Finalise(void);
extern void RTC_Linux_TimePreInit(void);
extern void RTC_Linux_TimeInit(void (*after_hook)(void *), void *anything);
extern void RTC_Linux_StartMeasurements(void);

/* 0=success, 1=no driver, 2=can't write file */
extern int RTC_Linux_WriteParameters(void);

extern int RTC_Linux_GetReport(RPT_RTC_Report *report);
extern int RTC_Linux_Trim(void);

extern void RTC_Linux_CycleLogFile(void);

#endif /* defined LINUX */

#endif _GOT_RTC_LINUX_H