Change selDelete to return void to avoid magic numbers
The selDelete function is changed to throw a ResourceNotFound error
when attempting to delete a non-existent SEL record instead of returning
a magic number to signal phosphor-ipmi-host. Additionally, the
phosphor-ipmi-host package will call the SELDelete method to call
selDelete function so the dbus method name has been updated to reflect
that.
Tested:
1. Generated SEL entries
2. Delete a SEL entry using:
busctl call xyz.openbmc_project.Logging.IPMI \
/xyz/openbmc_project/Logging/IPMI xyz.openbmc_project.Logging.IPMI \
SELDelete q <RecordID>
3. Using ipmitool sel list, all remaining SEL entries are seen
4. See a ResourceNotFound error if used a RecordID not already in SEL
Change-Id: I33f0b70e9fbe4c7d8dc0f35589ae3096ed5fe269
Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com>
diff --git a/meson.build b/meson.build
index a3a1216..d382a49 100644
--- a/meson.build
+++ b/meson.build
@@ -39,6 +39,8 @@
endif
if get_option('sel-delete')
cpp_args += '-DSEL_LOGGER_ENABLE_SEL_DELETE'
+
+ deps += dependency('phosphor-dbus-interfaces')
endif
executable(