sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If9a7314dade153dd7dbd149a76352aca8257839d
diff --git a/static/activation_static.cpp b/static/activation_static.cpp
index 8842f05..9b451cf 100644
--- a/static/activation_static.cpp
+++ b/static/activation_static.cpp
@@ -109,7 +109,7 @@
activationProgress->progress(10);
}
-void ActivationStatic::unitStateChange(sdbusplus::message::message& msg)
+void ActivationStatic::unitStateChange(sdbusplus::message_t& msg)
{
uint32_t newStateID{};
sdbusplus::message::object_path newStateObjPath;
diff --git a/static/activation_static.hpp b/static/activation_static.hpp
index 8cf563c..d96a748 100644
--- a/static/activation_static.hpp
+++ b/static/activation_static.hpp
@@ -25,7 +25,7 @@
Activations activation(Activations value) override;
private:
- void unitStateChange(sdbusplus::message::message& msg) override;
+ void unitStateChange(sdbusplus::message_t& msg) override;
void startActivation() override;
void finishActivation() override;
diff --git a/static/item_updater_static.hpp b/static/item_updater_static.hpp
index ce50462..6fc39a0 100644
--- a/static/item_updater_static.hpp
+++ b/static/item_updater_static.hpp
@@ -30,7 +30,7 @@
class ItemUpdaterStatic : public ItemUpdater
{
public:
- ItemUpdaterStatic(sdbusplus::bus::bus& bus, const std::string& path) :
+ ItemUpdaterStatic(sdbusplus::bus_t& bus, const std::string& path) :
ItemUpdater(bus, path)
{
processPNORImage();