summaryrefslogtreecommitdiff
path: root/include/dbus_monitor.hpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-06-04 18:11:30 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-06-11 23:46:30 +0300
commit1214b7e7d921e331fb1480c7e5d579ffa5811cda (patch)
treec0e38d55a89ab9df8ce112b190926b00c0a71da1 /include/dbus_monitor.hpp
parent29d2a95ba12f8b5abed040df7fd59790d6ba2517 (diff)
downloadbmcweb-1214b7e7d921e331fb1480c7e5d579ffa5811cda.tar.xz
clang-format: update to latest from docs repo
This is from openbmc/docs/style/cpp/.clang-format Other OpenBMC repos are doing the same. Tested: Built and validator passed. Change-Id: Ief26c755c9ce012823e16a506342b0547a53517a Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include/dbus_monitor.hpp')
-rw-r--r--include/dbus_monitor.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp
index 1747810c68..4cc5b064ad 100644
--- a/include/dbus_monitor.hpp
+++ b/include/dbus_monitor.hpp
@@ -9,11 +9,13 @@
#include <openbmc_dbus_rest.hpp>
#include <sdbusplus/bus/match.hpp>
#include <sdbusplus/message/types.hpp>
+
#include <variant>
namespace nlohmann
{
-template <typename... Args> struct adl_serializer<std::variant<Args...>>
+template <typename... Args>
+struct adl_serializer<std::variant<Args...>>
{
static void to_json(json& j, const std::variant<Args...>& v)
{
@@ -112,7 +114,8 @@ inline int onPropertyUpdate(sd_bus_message* m, void* userdata,
return 0;
}
-template <typename... Middlewares> void requestRoutes(Crow<Middlewares...>& app)
+template <typename... Middlewares>
+void requestRoutes(Crow<Middlewares...>& app)
{
BMCWEB_ROUTE(app, "/subscribe")
.requires({"Login"})