summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 0e9c180..fb7ac37 100644
--- a/src/main.c
+++ b/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)
{