]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5272] New control result added (3 = empty)
authorTomek Mrugalski <tomasz@isc.org>
Tue, 1 Aug 2017 18:53:30 +0000 (20:53 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 1 Aug 2017 19:13:43 +0000 (21:13 +0200)
src/lib/cc/command_interpreter.h
src/lib/cc/data.h

index a0bad85d77ecbe9b8ac529c2ced97c0079e3f167..eeaa500517cef5c91f2a92ce825d588abd14b7ea 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -41,6 +41,11 @@ const int CONTROL_RESULT_ERROR = 1;
 /// @brief Status code indicating that the specified command is not supported.
 const int CONTROL_RESULT_COMMAND_UNSUPPORTED = 2;
 
+/// @brief Status code indicating that the specified command was completed
+///        correctly, but failed to produce any results. For example, get
+///        completed the search, but couldn't find the object it was looking for.
+const int CONTROL_RESULT_EMPTY = 3;
+
 /// @brief A standard control channel exception that is thrown if a function
 /// is there is a problem with one of the messages
 class CtrlChannelError : public isc::Exception {
index 37a95649778479a77054f5c2fd244a00c9745107..d609615e9b1c27611591dca82ea129edb707877a 100644 (file)
@@ -326,7 +326,7 @@ public:
     virtual void remove(const std::string& name);
 
     /// Checks if there is data at the given key
-    /// @param name The key of the Element to remove
+    /// @param name The key of the Element checked for existence
     /// @return true if there is data at the key, false if not.
     virtual bool contains(const std::string& name) const;