thresholds: Add 2 new threshold interfaces
Add HardShutdown and SoftShutdown threshold interfaces. These could be
used when a hard shutdown or soft shutdown would be necessary based on a
sensor value and the existing warning and critical thresholds are
already being used for other actions on that sensor.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I81c620cd46503903e36261502cdeffa35cd7cbe5
diff --git a/gen/xyz/openbmc_project/Sensor/Threshold/HardShutdown/meson.build b/gen/xyz/openbmc_project/Sensor/Threshold/HardShutdown/meson.build
new file mode 100644
index 0000000..a74101e
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/Threshold/HardShutdown/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/HardShutdown__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/HardShutdown.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/HardShutdown',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Sensor/Threshold/SoftShutdown/meson.build b/gen/xyz/openbmc_project/Sensor/Threshold/SoftShutdown/meson.build
new file mode 100644
index 0000000..8cdf4ee
--- /dev/null
+++ b/gen/xyz/openbmc_project/Sensor/Threshold/SoftShutdown/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown__cpp'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Sensor/Threshold/meson.build b/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
index 6538b48..ebc1c2e 100644
--- a/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
+++ b/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
@@ -27,6 +27,36 @@
build_by_default: true,
)
+subdir('HardShutdown')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/HardShutdown__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/HardShutdown.interface.yaml', ],
+ output: [ 'HardShutdown.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/HardShutdown',
+ ],
+ build_by_default: true,
+)
+
+subdir('SoftShutdown')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml', ],
+ output: [ 'SoftShutdown.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown',
+ ],
+ build_by_default: true,
+)
+
subdir('Warning')
generated_others += custom_target(
'xyz/openbmc_project/Sensor/Threshold/Warning__markdown'.underscorify(),