sdbusplus: object: don't use 'bool' argument constructor
`sdbusplus::server::object_t` has long had an enum-based parameter for
signal action, but maintained a backwards compatible boolean mapping.
It is time to remove this boolean to make it more observable which
actions are being used in applications. Map all `true` occurrences to
`action::defer_emit`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4137ab812650afc09073d7b110254de87d5e5710
diff --git a/certificate.cpp b/certificate.cpp
index 419f626..f5e8ae9 100644
--- a/certificate.cpp
+++ b/certificate.cpp
@@ -232,7 +232,9 @@
CertificateType type, const std::string& installPath,
const std::string& uploadPath, Watch* watch,
Manager& parent) :
- internal::CertificateInterface(bus, objPath.c_str(), true),
+ internal::CertificateInterface(
+ bus, objPath.c_str(),
+ internal::CertificateInterface::action::defer_emit),
objectPath(objPath), certType(type), certInstallPath(installPath),
certWatch(watch), manager(parent)
{
@@ -269,7 +271,9 @@
const std::string& installPath, X509_STORE& x509Store,
const std::string& pem, Watch* watchPtr,
Manager& parent) :
- internal::CertificateInterface(bus, objPath.c_str(), true),
+ internal::CertificateInterface(
+ bus, objPath.c_str(),
+ internal::CertificateInterface::action::defer_emit),
objectPath(objPath), certType(type), certInstallPath(installPath),
certWatch(watchPtr), manager(parent)
{