From: Marcin Siodelski Date: Fri, 21 Dec 2012 12:30:41 +0000 (+0100) Subject: [2545] Moved global storages to the anonymous namespace. X-Git-Tag: bind10-1.0.0-rc-release~99^2~21^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28a43fa59ffd4f772104a76e3636b8c54b329aa3;p=thirdparty%2Fkea.git [2545] Moved global storages to the anonymous namespace. --- diff --git a/src/bin/dhcp4/config_parser.cc b/src/bin/dhcp4/config_parser.cc index 1f03c9fa76..1a5ffb65a8 100644 --- a/src/bin/dhcp4/config_parser.cc +++ b/src/bin/dhcp4/config_parser.cc @@ -59,6 +59,12 @@ typedef Dhcp4ConfigParser* ParserFactory(const std::string& config_id); /// @brief a collection of factories that creates parsers for specified element names typedef std::map FactoryMap; +/// @brief a collection of elements that store uint32 values (e.g. renew-timer = 900) +typedef std::map Uint32Storage; + +/// @brief a collection of elements that store string values +typedef std::map StringStorage; + /// @brief Storage for parsed boolean values. typedef std::map BooleanStorage; diff --git a/src/bin/dhcp4/config_parser.h b/src/bin/dhcp4/config_parser.h index 0adfb3628f..f18d07df17 100644 --- a/src/bin/dhcp4/config_parser.h +++ b/src/bin/dhcp4/config_parser.h @@ -28,12 +28,6 @@ namespace dhcp { class Dhcpv4Srv; -/// @brief a collection of elements that store uint32 values (e.g. renew-timer = 900) -typedef std::map Uint32Storage; - -/// @brief a collection of elements that store string values -typedef std::map StringStorage; - /// An exception that is thrown if an error occurs while configuring an /// @c Dhcpv4Srv object. class Dhcp4ConfigError : public isc::Exception { @@ -69,7 +63,8 @@ public: /// reconfiguration statuses. It may return the following response codes: /// 0 - configuration successful /// 1 - malformed configuration (parsing failed) -/// 2 - logical error (parsing was successful, but the values are invalid) +/// 2 - commit failed (parsing was successful, but failed to store the +/// values in to server's configuration) /// /// @param config_set a new configuration (JSON) for DHCPv4 server /// @return answer that contains result of reconfiguration