Implemented command line parser for dialup mode
[bpdyndnsd] / src / config.hpp
index 8be4128..9c94754 100644 (file)
@@ -49,6 +49,9 @@ private:
     bool StartOffline;
     bool WebcheckEnabled;
     bool ExternalLogOnlyOnce;
+    bool DialupMode;
+    int DialupBurstPeriodSeconds;
+    int DialupSleepSeconds;
 
     Service::Ptr create_service(const std::string& protocol, const std::string& server, const std::string& hostname, const std::string& login, const std::string& password, const int update_interval, const int max_updates_within_interval, const int dns_cache_ttl);
     int load_main_config_file(const std::string& full_filename);
@@ -106,6 +109,9 @@ public:
 
     bool get_external_log_only_once() const;
 
+    bool get_dialup_mode() const;
+    int get_dialup_burst_period_seconds() const;
+    int get_dialup_sleep_seconds() const;
 };
 
 #endif