Blame sys_generic.h

Packit 96c956
/*
Packit 96c956
  chronyd/chronyc - Programs for keeping computer clocks accurate.
Packit 96c956
Packit 96c956
 **********************************************************************
Packit 96c956
 * Copyright (C) Miroslav Lichvar  2014
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 generic driver
Packit 96c956
  */
Packit 96c956
Packit 96c956
#ifndef GOT_SYS_GENERIC_H
Packit 96c956
#define GOT_SYS_GENERIC_H
Packit 96c956
Packit 96c956
#include "localp.h"
Packit 96c956
Packit 96c956
/* Register a completed driver that implements offset functions on top of
Packit 96c956
   provided frequency functions */
Packit 96c956
extern void SYS_Generic_CompleteFreqDriver(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
                                           lcl_SetLeapDriver sys_set_leap,
Packit 96c956
                                           lcl_SetSyncStatusDriver sys_set_sync_status);
Packit 96c956
Packit 96c956
extern void SYS_Generic_Finalise(void);
Packit 96c956
Packit 96c956
#endif  /* GOT_SYS_GENERIC_H */