mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
sources: turn select options into flags
This will allow adding new options for source selection which can be combined with others.
This commit is contained in:
@@ -42,11 +42,11 @@ typedef struct {
|
||||
int max_sources;
|
||||
int min_samples;
|
||||
int max_samples;
|
||||
int sel_options;
|
||||
uint32_t authkey;
|
||||
double max_delay;
|
||||
double max_delay_ratio;
|
||||
double max_delay_dev_ratio;
|
||||
SRC_SelectOption sel_option;
|
||||
} SourceParameters;
|
||||
|
||||
#define SRC_DEFAULT_PORT 123
|
||||
@@ -63,4 +63,8 @@ typedef struct {
|
||||
#define SRC_DEFAULT_MAXSAMPLES (-1)
|
||||
#define INACTIVE_AUTHKEY 0
|
||||
|
||||
/* Flags for source selection */
|
||||
#define SRC_SELECT_NOSELECT 0x1
|
||||
#define SRC_SELECT_PREFER 0x2
|
||||
|
||||
#endif /* GOT_SRCPARAMS_H */
|
||||
|
||||
Reference in New Issue
Block a user