diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-02-17 15:39:36 -0600 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-03-09 15:13:33 -0600 |
commit | 293477d4650314935a3741c547efcb36d5efb340 (patch) | |
tree | a21cf9ae720be38a7d16f1a4cd33d9487dd130d9 /tach_detect.cpp | |
parent | ae0e96c3f98e57e5988b1621ec4c67d4b27cda4f (diff) | |
download | phosphor-fan-presence-293477d4650314935a3741c547efcb36d5efb340.tar.gz phosphor-fan-presence-293477d4650314935a3741c547efcb36d5efb340.zip |
Add fan presence application framework
Add class framework for detecting fans by tach
Change-Id: I45295fd6bcd81c62cef36320dfbc4f0da6092557
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'tach_detect.cpp')
-rw-r--r-- | tach_detect.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tach_detect.cpp b/tach_detect.cpp new file mode 100644 index 0000000..9b2ccd1 --- /dev/null +++ b/tach_detect.cpp @@ -0,0 +1,15 @@ +#include <vector> +#include <sdbusplus/bus.hpp> + +int main(void) +{ + auto bus = sdbusplus::bus::new_default(); + + while (true) + { + // Respond to dbus signals + bus.process_discard(); + bus.wait(); + } + return 0; +} |