From 188bb8c7bed851dba758d604941b5c0994988a75 Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 14 Dec 2019 12:26:09 -0500 Subject: [PATCH] Starting config file reading method --- main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/main.c b/main.c index b77c9a9..cadb447 100644 --- a/main.c +++ b/main.c @@ -87,6 +87,14 @@ void showHosts() } } +/** + * Read the configuration file and give a return code to indicate any changes. + * @return 1 if successful, 0 if otherwise. + */ +int read_config_file() { + +} + /** * Daemonize the process, to be run like this ONLY if there were no arguments * provided. @@ -104,6 +112,14 @@ void daemonize() { else { // DO THE THING. + while(1) { + // read config + read_config_file(); + // make adjustments + + // profit?? + // JK, sleep. + } } }