summaryrefslogtreecommitdiffstats
path: root/src/data_types.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-04-17 12:22:50 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-15 16:58:22 -0400
commitc5736432ac09d19cd0e513e11082a7637a196829 (patch)
tree913b2ca0f861f74a7effdd4d6999b4ab569c0ddb /src/data_types.hpp
parentb0b82be89c328ff8205821803592ba08963464ee (diff)
downloadphosphor-dbus-monitor-c5736432ac09d19cd0e513e11082a7637a196829.tar.gz
phosphor-dbus-monitor-c5736432ac09d19cd0e513e11082a7637a196829.zip
Documentation only, no functional change
Added copyrights and comments within headers Change-Id: Iebb17ba34b82a6c80718ad32338105a5245e640c Signed-off-by: Matthew Barth <msbarth@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 49406ea..cbe6faf 100644
--- a/src/data_types.hpp
+++ b/src/data_types.hpp
@@ -13,14 +13,18 @@ namespace monitoring
class Monitor;
+/** @brief The possible item value types */
using Value = int64_t;
+/** @brief A list of what constructs a unique item and its value */
using Group = std::vector<std::tuple<std::string, Value>>;
+/** @brief A conditional function type for item(s) conditions */
using Condition = std::function<bool(sdbusplus::bus::bus&,
sdbusplus::message::message&,
Monitor&)>;
+/** @brief A void function type for actions based condition(s) */
using Action = std::function<void(sdbusplus::bus::bus&,
Monitor&)>;
OpenPOWER on IntegriCloud