From: Slawek Figiel Date: Fri, 31 Mar 2023 16:04:11 +0000 (+0200) Subject: [#2815] Add host manager enum flags X-Git-Tag: Kea-2.3.8~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5be6daac8cc937299c5ba983ccb6fb2ba26357a;p=thirdparty%2Fkea.git [#2815] Add host manager enum flags --- diff --git a/src/lib/dhcpsrv/host_mgr.h b/src/lib/dhcpsrv/host_mgr.h index 808b1c6806..fffbc7d4fd 100644 --- a/src/lib/dhcpsrv/host_mgr.h +++ b/src/lib/dhcpsrv/host_mgr.h @@ -16,10 +16,22 @@ #include #include #include +#include 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