mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:55:07 -05:00
conf: use enum for RX filter
This commit is contained in:
12
conf.h
12
conf.h
@@ -118,16 +118,18 @@ extern char *CNF_GetHwclockFile(void);
|
||||
extern int CNF_GetInitSources(void);
|
||||
extern double CNF_GetInitStepThreshold(void);
|
||||
|
||||
#define CNF_HWTS_RXFILTER_ANY 0
|
||||
#define CNF_HWTS_RXFILTER_NONE 1
|
||||
#define CNF_HWTS_RXFILTER_NTP 2
|
||||
#define CNF_HWTS_RXFILTER_ALL 3
|
||||
typedef enum {
|
||||
CNF_HWTS_RXFILTER_ANY,
|
||||
CNF_HWTS_RXFILTER_NONE,
|
||||
CNF_HWTS_RXFILTER_NTP,
|
||||
CNF_HWTS_RXFILTER_ALL,
|
||||
} CNF_HwTs_RxFilter;
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
int minpoll;
|
||||
int nocrossts;
|
||||
int rxfilter;
|
||||
CNF_HwTs_RxFilter rxfilter;
|
||||
double precision;
|
||||
double tx_comp;
|
||||
double rx_comp;
|
||||
|
||||
Reference in New Issue
Block a user