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: Iead15c0b9b891c7e65e732c7e0af1985d812a39f
diff --git a/lpcsnoop/snoop.hpp b/lpcsnoop/snoop.hpp
index 68d51b4..34d53b1 100644
--- a/lpcsnoop/snoop.hpp
+++ b/lpcsnoop/snoop.hpp
@@ -21,7 +21,9 @@
{
public:
PostReporter(sdbusplus::bus::bus& bus, const char* objPath, bool defer) :
- PostObject(bus, objPath, defer)
+ PostObject(bus, objPath,
+ defer ? PostObject::action::defer_emit
+ : PostObject::action::emit_object_added)
{
}
};