summaryrefslogtreecommitdiffstats
path: root/src/data_types.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-10-31 14:17:23 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-11-14 11:14:53 -0600
commitdf1b7cfc395e2e48c9924186a6127d06a77541ea (patch)
treef2541fe5c5fc198b9f83fad3fb2626b448bcf229 /src/data_types.hpp
parent56fd833d55f62962f7d4c7c8421006cab7b98409 (diff)
downloadphosphor-dbus-monitor-df1b7cfc395e2e48c9924186a6127d06a77541ea.tar.gz
phosphor-dbus-monitor-df1b7cfc395e2e48c9924186a6127d06a77541ea.zip
Add getBusName() utility function to SDBusPlus
Add a function to SDBusPlus to get the D-Bus bus name for an object path and interface. Change-Id: I7d7a533c7430fcf42e1e0f6a21a2453e6c8197ea Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'src/data_types.hpp')
-rw-r--r--src/data_types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/data_types.hpp b/src/data_types.hpp
index 5eab4b2..21f2ecf 100644
--- a/src/data_types.hpp
+++ b/src/data_types.hpp
@@ -13,6 +13,10 @@ namespace dbus
namespace monitoring
{
+constexpr auto MAPPER_BUSNAME = "xyz.openbmc_project.ObjectMapper";
+constexpr auto MAPPER_PATH = "/xyz/openbmc_project/object_mapper";
+constexpr auto MAPPER_INTERFACE = "xyz.openbmc_project.ObjectMapper";
+
/** @brief A map with references as keys. */
template <typename Key, typename Value>
using RefKeyMap = std::map<std::reference_wrapper<Key>, Value, std::less<Key>>;
OpenPOWER on IntegriCloud