summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index c047b62..481f12c 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -151,6 +151,22 @@ class Zone
};
/**
+ * @brief Remove an object's interface
+ *
+ * @param[in] object - Name of the object with the interface
+ * @param[in] interface - Interface name to remove
+ */
+ inline void removeObjIntf(const char* object,
+ const char* interface)
+ {
+ auto it = _properties.find(object);
+ if (it != std::end(_properties))
+ {
+ _properties[object].erase(interface);
+ }
+ }
+
+ /**
* @brief Remove a service associated to a group
*
* @param[in] group - Group associated with service
OpenPOWER on IntegriCloud