diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-05-11 10:07:55 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-05-11 19:58:23 +0000 |
commit | e824f985e7e32923d9f76e3ad5baf4909880739f (patch) | |
tree | 8a89c8fc65f2611101d04ae9c550d4beb707d69d /monitor/fan.hpp | |
parent | 14321846e57f483f472590b1c5fe35891511312f (diff) | |
download | phosphor-fan-presence-e824f985e7e32923d9f76e3ad5baf4909880739f.tar.gz phosphor-fan-presence-e824f985e7e32923d9f76e3ad5baf4909880739f.zip |
Use unique_ptr for sd_event object wrapper
Convert the sd_event object wrapper from a shared_ptr to
a unique_ptr. Requires a new header file.
Change-Id: I868a9e88ed93878c2e0bb12e58f8d3a604510da0
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'monitor/fan.hpp')
-rw-r--r-- | monitor/fan.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp index 910b4eb..8e7f86f 100644 --- a/monitor/fan.hpp +++ b/monitor/fan.hpp @@ -3,6 +3,7 @@ #include <sdbusplus/bus.hpp> #include <tuple> #include <vector> +#include "event.hpp" #include "tach_sensor.hpp" #include "types.hpp" @@ -72,7 +73,7 @@ class Fan * @param def - the fan definition structure */ Fan(sdbusplus::bus::bus& bus, - std::shared_ptr<sd_event>& events, + phosphor::fan::event::EventPtr& events, const FanDefinition& def); /** |