diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-28 14:06:27 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-28 14:06:27 -0400 |
commit | a2e9cdf67e7f8537a1f98d585b5a09f21e19d0ea (patch) | |
tree | e05daffe99b582a58a82d6d72a2d0b6eb3ad557c /src/monitor.hpp | |
parent | 1ada93be00378c94ff14bec8c2c7f5bbd85f72b0 (diff) | |
download | phosphor-dbus-monitor-a2e9cdf67e7f8537a1f98d585b5a09f21e19d0ea.tar.gz phosphor-dbus-monitor-a2e9cdf67e7f8537a1f98d585b5a09f21e19d0ea.zip |
Remove dead code
Remove a number of unused files.
Change-Id: If7e40d2be7eb3f5d84538a3c86f911df268a1f34
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/monitor.hpp')
-rw-r--r-- | src/monitor.hpp | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/src/monitor.hpp b/src/monitor.hpp deleted file mode 100644 index 63afebe..0000000 --- a/src/monitor.hpp +++ /dev/null @@ -1,92 +0,0 @@ -#pragma once - -#include <sdbusplus/bus.hpp> -#include <sdbusplus/server.hpp> -#include "events.hpp" - -namespace phosphor -{ -namespace dbus -{ -namespace monitoring -{ - -/** - * @class Monitor - * @brief OpenBMC DBus Monitoring application - * @details A configurable application to perform a set of actions based on one - * or more conditions for items within a group - */ -class Monitor -{ - public: - Monitor() = delete; - Monitor(const Monitor&) = delete; - Monitor(Monitor&&) = default; - Monitor& operator=(const Monitor&) = delete; - Monitor& operator=(Monitor&&) = default; - ~Monitor() = default; - - /** - * @brief Constructs monitor object - * - * @param[in] bus - Dbus bus object - */ - explicit Monitor(sdbusplus::bus::bus& bus); - - /** - * @brief Process events triggered by the application starting - */ - void processStart() noexcept; - - /** - * @brief Handle an event being processed - * - * @param[in] msg - Dbus msg - * @param[in] event - Event to be handled - * @param[in] eventDef - The event's full definition - */ - void handleEvent(sdbusplus::message::message& msg, - const Event& event, - const std::tuple<std::vector<std::shared_ptr<Event>>, - std::vector<Action>>& eventDef); - - /** - * @brief An event's set of arguments - */ - using eventArg = std::tuple<Monitor*, - const SignalEvent*, - const std::tuple< - std::vector<std::shared_ptr<Event>>, - std::vector<Action>>*>; - - private: - /** @brief Connection for sdbusplus bus */ - sdbusplus::bus::bus& bus; - /** @brief List of events to process */ - static const std::vector< - std::tuple<std::vector<std::shared_ptr<Event>>, - std::vector<Action>>> events; - /** @brief List of event arguments */ - std::vector<std::unique_ptr<eventArg>> eventArgs; - /** @brief list of Dbus matches for callbacks */ - std::vector<sdbusplus::server::match::match> matches; - - /** - * @brief Handle an event signal - * - * @param[in] msg - Data associated with the subscribed signal - * @param[in] data - Pointer to the event items's data - * @param[in] err - Contains any sdbus error reference if occurred - * - * @return 0 - */ - static int handleSignal(sd_bus_message* msg, - void* data, - sd_bus_error* err); - -}; - -} // namespace monitoring -} // namespace dbus -} // namespace phosphor |