common: host power utility
Create this utility class to abstract host power operation with a single
function call.
This was refactored out of [1] (BIOS Code Updater)
Tested: Has been tested as part of [1]
References:
[1] https://gerrit.openbmc.org/c/openbmc/phosphor-bmc-code-mgmt/+/76101
Change-Id: I97dc8b1824f70f0aeede3b39683c2ee4ef9ca3c9
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/common/meson.build b/common/meson.build
index 73ef76f..1e29ae8 100644
--- a/common/meson.build
+++ b/common/meson.build
@@ -8,6 +8,7 @@
'src/software_config.cpp',
'src/software.cpp',
'src/software_update.cpp',
+ 'src/host_power.cpp',
include_directories: ['.', 'include/', common_include],
dependencies: [pdi_dep, phosphor_logging_dep, sdbusplus_dep, libpldm_dep],
)