conf: add sourcedirs directive

Add a new directive to include configuration files that only specify NTP
sources and which will be possible to reload with a chronyc command.
This commit is contained in:
Miroslav Lichvar
2020-06-10 11:07:48 +02:00
parent ea4811b3b3
commit 519796de37
3 changed files with 219 additions and 16 deletions

2
conf.h
View File

@@ -47,6 +47,8 @@ extern void CNF_AddSources(void);
extern void CNF_AddBroadcasts(void);
extern void CNF_AddRefclocks(void);
extern void CNF_ReloadSources(void);
extern int CNF_GetAcquisitionPort(void);
extern int CNF_GetNTPPort(void);
extern char *CNF_GetDriftFile(void);