14 #include <boost/foreach.hpp>
16 #include "updater.cpp"
19 #include "service.cpp"
27 * @brief the main part.
28 * @param argc number of arguments
29 * @param argv command line arguments
30 * @return exit code for the process.
32 int main(int argc, char *argv[])
34 // Initialize Config class and get the command line parameters
35 Config * config = new Config;
36 int ret_val = config->parse_cmd_line(argc,argv);
40 config->print_usage();
46 ostringstream version_string;
47 version_string << VERSION << "." << REVISION << "." << RELEASE;
48 config->print_version(version_string.str());
52 string config_path = "/home/bjoern/bpdyndnsd"; // TODO: standard config path should be /etc/bpdyndnsd if not specified other on command line
53 ret_val = config->load_config_from_files(config_path);
56 cout << "See manpage for config file structure." << endl;
64 Updater * updater = new Updater(config);
65 updater->update_services();