summaryrefslogtreecommitdiffstats
path: root/control/types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-09-27 09:33:42 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-11-17 13:14:10 -0600
commite59fdf707514ed00fa1ab432a052de1fac07b56c (patch)
tree38ca2bc1a3e4bee8d5b1a0fbc8d2dba55024000c /control/types.hpp
parent8fa02dabe17db9761086d77c390ceb281e2936c9 (diff)
downloadphosphor-fan-presence-e59fdf707514ed00fa1ab432a052de1fac07b56c.tar.gz
phosphor-fan-presence-e59fdf707514ed00fa1ab432a052de1fac07b56c.zip
Set/update a service name owner for a group
Adds a service name associated with a group when the group or given service name is not found within the map of services otherwise updates the service name owner associated with the group. Change-Id: I602ddaa7e06e354e01ea70d6c5c0a45e74a14e99 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/types.hpp')
-rw-r--r--control/types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/control/types.hpp b/control/types.hpp
index d3ddb16..915b8b4 100644
--- a/control/types.hpp
+++ b/control/types.hpp
@@ -53,6 +53,10 @@ using PrecondGroup = std::tuple<std::string,
std::string,
PropertyVariantType>;
+constexpr auto namePos = 0;
+constexpr auto hasOwnerPos = 1;
+using Service = std::tuple<std::string, bool>;
+
constexpr auto intervalPos = 0;
using Timer = std::tuple<std::chrono::seconds>;
OpenPOWER on IntegriCloud