summaryrefslogtreecommitdiffstats
path: root/src/data_types.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-10-06 20:56:31 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2018-02-20 09:30:04 +0530
commit90bfaea4c69773f4f252d06fad1147a718e8b863 (patch)
tree5d1ad14ac9e61ea0fbf9111bf48ec0ace714a9a9 /src/data_types.hpp
parent80e9b65fdf9b1172e02de606cc193a6723791828 (diff)
downloadphosphor-dbus-monitor-90bfaea4c69773f4f252d06fad1147a718e8b863.tar.gz
phosphor-dbus-monitor-90bfaea4c69773f4f252d06fad1147a718e8b863.zip
Initial support for event callbacks
Add parser support for template rendering of events. Also defines the EventBase and Event classes. EventBase is parent of Event. Change-Id: I6b07b415acf510a8437529095bd489c0af73ddf5 Signed-off-by: Ratan Gupta <ratagupt@in.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 21f2ecf..1ba0b8a 100644
--- a/src/data_types.hpp
+++ b/src/data_types.hpp
@@ -16,6 +16,10 @@ 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";
+constexpr auto pathIndex = 0;
+constexpr auto propertyIndex = 2;
+constexpr auto valueIndex = 2;
+constexpr auto metaIndex = 1;
/** @brief A map with references as keys. */
template <typename Key, typename Value>
OpenPOWER on IntegriCloud