From ca60e10f1abd7c3d05e6a2aff62ee56e46c9debc Mon Sep 17 00:00:00 2001 From: Brandon Wyman Date: Wed, 29 Mar 2017 17:06:02 -0500 Subject: Create framework for phosphor-cooling-type app An application called phosphor-cooling-type is being created in the phosphor-fan-presence repo under the chassis-cooling-type subdirectory. This application will update the D-Bus CoolingType properties for a cooling zone via passed in parameters. The current properties to be updated are AirCooling and WaterCooling. They will be set to true or false based the passed in parameters --air (set AirCooling to true), --water (set WaterCooling to true), and/or --gpio= (path to a GPIO pin to read to determine if one or more properties should be set to true or false). Change-Id: I774065e29849aaa54653ae6188dc42aa846a1cf0 Signed-off-by: Brandon Wyman Signed-off-by: Brad Bishop --- chassis-cooling-type/cooling_type.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 chassis-cooling-type/cooling_type.cpp (limited to 'chassis-cooling-type/cooling_type.cpp') diff --git a/chassis-cooling-type/cooling_type.cpp b/chassis-cooling-type/cooling_type.cpp new file mode 100644 index 0000000..d382a0b --- /dev/null +++ b/chassis-cooling-type/cooling_type.cpp @@ -0,0 +1,10 @@ +#include "cooling_type.hpp" + +int main(int argc, char* argv[]) +{ + int rc = -1; + + rc = 0; + + return rc; +} -- cgit v1.2.1