]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2815] Add host manager enum flags
authorSlawek Figiel <slawek@isc.org>
Fri, 31 Mar 2023 16:04:11 +0000 (18:04 +0200)
committerSlawek Figiel <slawek@isc.org>
Thu, 25 May 2023 11:29:28 +0000 (13:29 +0200)
src/lib/dhcpsrv/host_mgr.h

index 808b1c680608be6e869f0698afc9f10d35c80c57..fffbc7d4fdf375cd71521283f5851e21a1c9cee2 100644 (file)
 #include <boost/noncopyable.hpp>
 #include <boost/scoped_ptr.hpp>
 #include <string>
+#include <cstdint>
 
 namespace isc {
 namespace dhcp {
 
+// Enum flags to define a target of the host manager functions.
+enum class HostMgrOperationTarget : uint8_t {
+    NONE = 0, // 1 << 0
+    // Consider only the CfgHosts instance.
+    CONFIG_HOSTS = 1, // 1 << 1
+    // Consider only the alternate sources.
+    ALTERNATE_SOURCES = 2, // 1 << 2
+    // Consider both CfgInstance and alternate sources.
+    ALL = 3  // CONFIG_HOSTS & ALTERNATE_SOURCES
+};
+
 /// @brief Host Manager.
 ///
 /// This is a singleton class which provides access to multiple sources of