diff options
author | Michael Adam <obnox@samba.org> | 2009-12-21 23:37:17 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-22 00:14:59 +0100 |
commit | 8bf91ce80ffeaa6de2273040f17f6fd869641898 (patch) | |
tree | ac2acae31da0ca2be589eedd1b0811a814aaf430 /src | |
parent | 72632f65694e26080a8c69476d1bc0dc8f7ec9dc (diff) | |
download | tinyproxy-8bf91ce80ffeaa6de2273040f17f6fd869641898.tar.gz tinyproxy-8bf91ce80ffeaa6de2273040f17f6fd869641898.zip |
main: add convenience wrapper reload_config() for reload_config_file()
Michael
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 13 | ||||
-rw-r--r-- | src/main.h | 2 |
2 files changed, 15 insertions, 0 deletions
@@ -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__ */ |