main: add convenience wrapper reload_config() for reload_config_file()
Michael
This commit is contained in:
parent
72632f6569
commit
8bf91ce80f
13
src/main.c
13
src/main.c
@ -324,6 +324,19 @@ static void initialize_config_defaults (struct config_s *conf)
|
||||
conf->idletimeout = MAX_IDLE_TIME;
|
||||
}
|
||||
|
||||
/**
|
||||
* convenience wrapper around reload_config_file
|
||||
*/
|
||||
int reload_config (void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = reload_config_file (config_defaults.config_file, &config,
|
||||
&config_defaults);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
|
@ -33,4 +33,6 @@ extern struct config_s config;
|
||||
extern unsigned int received_sighup; /* boolean */
|
||||
extern unsigned int processed_config_file; /* boolean */
|
||||
|
||||
extern int reload_config (void);
|
||||
|
||||
#endif /* __MAIN_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user