summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-11-06 13:34:32 -0600
committerMatthew Barth <msbarth@us.ibm.com>2017-11-17 13:14:11 -0600
commit55dea64300f44adc5146da3764ab52d39b546518 (patch)
tree08f2f855f52ddd896981a76acc0bfa9f6f1126a7 /control/zone.hpp
parent480787c118fb511a8fe23a19f97bcf24b564c11e (diff)
downloadphosphor-fan-presence-55dea64300f44adc5146da3764ab52d39b546518.tar.gz
phosphor-fan-presence-55dea64300f44adc5146da3764ab52d39b546518.zip
Remove empty service name
Before refreshing the service names and states for a group, the empty service name should be removed if it exists. An empty service name may exist where upon startup, a particular service was not found for a member or members of a group. Change-Id: I15d224231bb9db0823866393ec1776f793a3c126 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 9565933..dbf4378 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -140,6 +140,15 @@ class Zone
};
/**
+ * @brief Remove a service associated to a group
+ *
+ * @param[in] group - Group associated with service
+ * @param[in] name - Service name to remove
+ */
+ void removeService(const Group* group,
+ const std::string& name);
+
+ /**
* @brief Set or update a service name owner in use
*
* @param[in] group - Group associated with service
OpenPOWER on IntegriCloud