summaryrefslogtreecommitdiffstats
path: root/fan_properties.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-02-17 16:39:46 -0600
committerMatthew Barth <msbarth@us.ibm.com>2017-03-15 12:17:32 -0500
commitb803445f7095c9b1e2ab40dc37526b15e7006393 (patch)
treef590d6b285ad1e7379a4f61dd32491758ade065e /fan_properties.hpp
parent681c98db43500d34cb93739fc97e6da05450f75c (diff)
downloadphosphor-fan-presence-b803445f7095c9b1e2ab40dc37526b15e7006393.tar.gz
phosphor-fan-presence-b803445f7095c9b1e2ab40dc37526b15e7006393.zip
Create fan enclosure objects
For tach feedback based presence detected fans, a fan enclosure object is created from the properties given within the yaml file. Change-Id: I698dd7c8d05863aaaab4dcb5d4c696b15fdf941d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'fan_properties.hpp')
-rw-r--r--fan_properties.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/fan_properties.hpp b/fan_properties.hpp
new file mode 100644
index 0000000..22d655a
--- /dev/null
+++ b/fan_properties.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <string>
+#include <vector>
+#include <tuple>
+
+
+namespace phosphor
+{
+namespace fan
+{
+
+using Properties = std::tuple<std::string,
+ std::string,
+ std::vector<std::string>>;
+
+} // namespace fan
+} // namespace phosphor
OpenPOWER on IntegriCloud