]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2545] Moved global storages to the anonymous namespace.
authorMarcin Siodelski <marcin@isc.org>
Fri, 21 Dec 2012 12:30:41 +0000 (13:30 +0100)
committerMarcin Siodelski <marcin@isc.org>
Fri, 21 Dec 2012 12:30:41 +0000 (13:30 +0100)
src/bin/dhcp4/config_parser.cc
src/bin/dhcp4/config_parser.h

index 1f03c9fa76e157d00e024f6cb692817e90da72e0..1a5ffb65a89aff7a029be96866aeed27e7fcd25e 100644 (file)
@@ -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<std::string, ParserFactory*> FactoryMap;
 
+/// @brief a collection of elements that store uint32 values (e.g. renew-timer = 900)
+typedef std::map<std::string, uint32_t> Uint32Storage;
+
+/// @brief a collection of elements that store string values
+typedef std::map<std::string, std::string> StringStorage;
+
 /// @brief Storage for parsed boolean values.
 typedef std::map<string, bool> BooleanStorage;
 
index 0adfb3628f0c22dc1c808ed6b96fc7d415485be5..f18d07df17725713309e0b038739bca919118ed1 100644 (file)
@@ -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<std::string, uint32_t> Uint32Storage;
-
-/// @brief a collection of elements that store string values
-typedef std::map<std::string, std::string> 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