serial-uart-mux: use non-deprecated sdbusplus-client names
The generated sdbus++ bindings have SDBUSPP_REMOVE_DEPRECATED_NAMESPACE
as a guard around the type that was previously used. Use the
non-deprecated name to future-proof this code.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I47ed9660284c67c618224d034120063dfb86c6d0
diff --git a/src/serial_uart_mux.cpp b/src/serial_uart_mux.cpp
index ee3d5d5..bd1c0d8 100644
--- a/src/serial_uart_mux.cpp
+++ b/src/serial_uart_mux.cpp
@@ -1,6 +1,5 @@
#include "serial_uart_mux.hpp"
-#include "xyz/openbmc_project/Chassis/Buttons/HostSelector/client.hpp"
#include "xyz/openbmc_project/Chassis/Buttons/HostSelector/server.hpp"
#include <error.h>
@@ -9,10 +8,10 @@
namespace sdbusRule = sdbusplus::bus::match::rules;
// add the button iface class to registry
static ButtonIFRegister<SerialUartMux> buttonRegister;
-namespace HostSelectorServerObj =
- sdbusplus::xyz::openbmc_project::Chassis::Buttons::server;
-namespace HostSelectorClientObj =
- sdbusplus::xyz::openbmc_project::Chassis::Buttons::client::HostSelector;
+using HostSelectorServerObj =
+ sdbusplus::server::xyz::openbmc_project::chassis::buttons::HostSelector;
+using HostSelectorClientObj =
+ sdbusplus::common::xyz::openbmc_project::chassis::buttons::HostSelector;
constexpr std::string_view SERIAL_UART_RX_GPIO = "serial_uart_rx";
void SerialUartMux::init()
@@ -82,8 +81,7 @@
void SerialUartMux::hostSelectorPositionChanged(sdbusplus::message_t& msg)
{
std::string interface;
- std::map<std::string,
- HostSelectorServerObj::HostSelector::PropertiesVariant>
+ std::map<std::string, HostSelectorServerObj::PropertiesVariant>
propertiesChanged;
lg2::info("hostSelectorPositionChanged callback : {BUTTON_TYPE}",
"BUTTON_TYPE", getFormFactorName());