Blame sys_timex.h

Packit 96c956
/*
Packit 96c956
  chronyd/chronyc - Programs for keeping computer clocks accurate.
Packit 96c956
Packit 96c956
 **********************************************************************
Packit 96c956
 * Copyright (C) Miroslav Lichvar  2015
Packit 96c956
 * 
Packit 96c956
 * This program is free software; you can redistribute it and/or modify
Packit 96c956
 * it under the terms of version 2 of the GNU General Public License as
Packit 96c956
 * published by the Free Software Foundation.
Packit 96c956
 * 
Packit 96c956
 * This program is distributed in the hope that it will be useful, but
Packit 96c956
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 96c956
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 96c956
 * General Public License for more details.
Packit 96c956
 * 
Packit 96c956
 * You should have received a copy of the GNU General Public License along
Packit 96c956
 * with this program; if not, write to the Free Software Foundation, Inc.,
Packit 96c956
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
Packit 96c956
 * 
Packit 96c956
 **********************************************************************
Packit 96c956
Packit 96c956
  =======================================================================
Packit 96c956
Packit 96c956
  Header file for a driver based on the adjtimex()/ntp_adjtime() function
Packit 96c956
  */
Packit 96c956
Packit 96c956
#ifndef GOT_SYS_TIMEX_H
Packit 96c956
#define GOT_SYS_TIMEX_H
Packit 96c956
Packit 96c956
#include "localp.h"
Packit 96c956
Packit 96c956
extern void SYS_Timex_Initialise(void);
Packit 96c956
Packit 96c956
/* Initialise with some driver functions replaced with special versions */
Packit 96c956
extern void SYS_Timex_InitialiseWithFunctions(double max_set_freq_ppm, double max_set_freq_delay,
Packit 96c956
                                              lcl_ReadFrequencyDriver sys_read_freq,
Packit 96c956
                                              lcl_SetFrequencyDriver sys_set_freq,
Packit 96c956
                                              lcl_ApplyStepOffsetDriver sys_apply_step_offset,
Packit 96c956
                                              double min_fastslew_offset, double max_fastslew_rate,
Packit 96c956
                                              lcl_AccrueOffsetDriver sys_accrue_offset,
Packit 96c956
                                              lcl_OffsetCorrectionDriver sys_get_offset_correction);
Packit 96c956
Packit 96c956
extern void SYS_Timex_Finalise(void);
Packit 96c956
Packit 96c956
/* Wrapper for adjtimex()/ntp_adjtime() */
Packit 96c956
extern int SYS_Timex_Adjust(struct timex *txc, int ignore_error);
Packit 96c956
Packit 96c956
#endif  /* GOT_SYS_GENERIC_H */