Starting config file reading method

This commit is contained in:
Jacob Windle 2019-12-14 12:26:09 -05:00
parent ee9bc42f8c
commit 188bb8c7be

16
main.c
View File

@ -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 * Daemonize the process, to be run like this ONLY if there were no arguments
* provided. * provided.
@ -104,6 +112,14 @@ void daemonize() {
else { else {
// DO THE THING. // DO THE THING.
while(1) {
// read config
read_config_file();
// make adjustments
// profit??
// JK, sleep.
}
} }
} }