pump: add event interface

Add the PumpFailed and PumpRestored events for the pumps used in
Resevior & Pumping Unit based liquid cooling equipment. These
definitions are based on Redfish specification of these events under
Environmental namespace[1].

[1] https://github.com/DMTF/Redfish-Publications/blob/main/registries/Environmental.1.2.0.json#L2254

Change-Id: I8ec4e95712a156023d654f83ad6d025c1cae6fe8
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/gen/xyz/openbmc_project/State/meson.build b/gen/xyz/openbmc_project/State/meson.build
index acd8a69..2384063 100644
--- a/gen/xyz/openbmc_project/State/meson.build
+++ b/gen/xyz/openbmc_project/State/meson.build
@@ -12,6 +12,7 @@
 subdir('OperatingSystem')
 subdir('Power')
 subdir('PowerOnHours')
+subdir('Pump')
 subdir('SMC')
 subdir('ScheduledHostTransition')
 subdir('Shutdown')
@@ -323,6 +324,50 @@
 )
 
 generated_markdown += custom_target(
+    'xyz/openbmc_project/State/Pump__markdown'.underscorify(),
+    input: ['../../../../yaml/xyz/openbmc_project/State/Pump.events.yaml'],
+    output: ['Pump.md'],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog,
+        '--command',
+        'markdown',
+        '--output',
+        meson.current_build_dir(),
+        '--tool',
+        sdbusplusplus_prog,
+        '--directory',
+        meson.current_source_dir() / '../../../../yaml',
+        'xyz/openbmc_project/State/Pump',
+    ],
+    install: should_generate_markdown,
+    install_dir: [inst_markdown_dir / sdbusplus_current_path],
+    build_by_default: should_generate_markdown,
+)
+
+generated_registry += custom_target(
+    'xyz/openbmc_project/State/Pump__registry'.underscorify(),
+    input: ['../../../../yaml/xyz/openbmc_project/State/Pump.events.yaml'],
+    output: ['Pump.json'],
+    depend_files: sdbusplusplus_depfiles,
+    command: [
+        sdbuspp_gen_meson_prog,
+        '--command',
+        'registry',
+        '--output',
+        meson.current_build_dir(),
+        '--tool',
+        sdbusplusplus_prog,
+        '--directory',
+        meson.current_source_dir() / '../../../../yaml',
+        'xyz/openbmc_project/State/Pump',
+    ],
+    install: should_generate_registry,
+    install_dir: [inst_registry_dir / sdbusplus_current_path],
+    build_by_default: should_generate_registry,
+)
+
+generated_markdown += custom_target(
     'xyz/openbmc_project/State/SMC__markdown'.underscorify(),
     input: ['../../../../yaml/xyz/openbmc_project/State/SMC.events.yaml'],
     output: ['SMC.md'],