diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-07-30 13:20:37 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-03 01:52:48 +0000 |
commit | e67b41bc46f7b801eec3d0c40f451cb2c35d7e66 (patch) | |
tree | 381452f569d5be3d82fbe5300c62962eb099b0bf | |
parent | 12e25b6045014bd103dbd112cfd5beb172b82722 (diff) | |
download | phosphor-fan-presence-e67b41bc46f7b801eec3d0c40f451cb2c35d7e66.tar.gz phosphor-fan-presence-e67b41bc46f7b801eec3d0c40f451cb2c35d7e66.zip |
whitespace fixes
Change-Id: Ibce6f79d4f4efb4a1605afc2958dd543f54ae726
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | sdbusplus.hpp | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/sdbusplus.hpp b/sdbusplus.hpp index fb6c51c..0b842e6 100644 --- a/sdbusplus.hpp +++ b/sdbusplus.hpp @@ -47,10 +47,10 @@ class SDBusPlus Args&& ... args) { auto reqMsg = getBus().new_method_call( - busName.c_str(), - path.c_str(), - interface.c_str(), - method.c_str()); + busName.c_str(), + path.c_str(), + interface.c_str(), + method.c_str()); reqMsg.append(std::forward<Args>(args)...); auto respMsg = getBus().call(reqMsg); @@ -60,7 +60,7 @@ class SDBusPlus "Failed to invoke DBus method.", phosphor::logging::entry("PATH=%s", path.c_str()), phosphor::logging::entry( - "INTERFACE=%s", interface.c_str()), + "INTERFACE=%s", interface.c_str()), phosphor::logging::entry("METHOD=%s", method.c_str())); phosphor::logging::elog<detail::errors::InternalFailure>(); } @@ -78,12 +78,12 @@ class SDBusPlus Args&& ... args) { sdbusplus::message::message respMsg = - callMethod<Args...>( - busName, - path, - interface, - method, - std::forward<Args>(args)...); + callMethod<Args...>( + busName, + path, + interface, + method, + std::forward<Args>(args)...); Ret resp; respMsg.read(resp); return resp; @@ -98,12 +98,12 @@ class SDBusPlus using GetObject = std::map<std::string, std::vector<std::string>>; auto mapperResp = callMethodAndRead<GetObject>( - "xyz.openbmc_project.ObjectMapper"s, - "/xyz/openbmc_project/object_mapper"s, - "xyz.openbmc_project.ObjectMapper"s, - "GetObject"s, - path, - GetObject::mapped_type{interface}); + "xyz.openbmc_project.ObjectMapper"s, + "/xyz/openbmc_project/object_mapper"s, + "xyz.openbmc_project.ObjectMapper"s, + "GetObject"s, + path, + GetObject::mapped_type{interface}); if (mapperResp.empty()) { @@ -111,7 +111,7 @@ class SDBusPlus "Object not found.", phosphor::logging::entry("PATH=%s", path.c_str()), phosphor::logging::entry( - "INTERFACE=%s", interface.c_str())); + "INTERFACE=%s", interface.c_str())); phosphor::logging::elog<detail::errors::InternalFailure>(); } return mapperResp.begin()->first; @@ -127,12 +127,12 @@ class SDBusPlus using namespace std::literals::string_literals; auto msg = callMethod( - getService(path, interface), - path, - "org.freedesktop.DBus.Properties"s, - "Get"s, - interface, - property); + getService(path, interface), + path, + "org.freedesktop.DBus.Properties"s, + "Get"s, + interface, + property); sdbusplus::message::variant<Property> value; msg.read(value); return value.template get<Property>(); @@ -149,16 +149,16 @@ class SDBusPlus using namespace std::literals::string_literals; sdbusplus::message::variant<Property> varValue( - std::forward<Property>(value)); + std::forward<Property>(value)); callMethod( - getService(path, interface), - path, - "org.freedesktop.DBus.Properties"s, - "Set"s, - interface, - property, - varValue); + getService(path, interface), + path, + "org.freedesktop.DBus.Properties"s, + "Set"s, + interface, + property, + varValue); } /** @brief Invoke method with mapper lookup. */ @@ -170,11 +170,11 @@ class SDBusPlus Args&& ... args) { return callMethod( - getService(path, interface), - path, - interface, - method, - std::forward<Args>(args)...); + getService(path, interface), + path, + interface, + method, + std::forward<Args>(args)...); } /** @brief Invoke method and read with mapper lookup. */ @@ -186,11 +186,11 @@ class SDBusPlus Args&& ... args) { return callMethodAndRead( - getService(path, interface), - path, - interface, - method, - std::forward<Args>(args)...); + getService(path, interface), + path, + interface, + method, + std::forward<Args>(args)...); } }; |