Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 1 | #pragma once |
Matthew Barth | a956184 | 2017-06-29 11:43:45 -0500 | [diff] [blame] | 2 | #include <chrono> |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 3 | #include <vector> |
Matthew Barth | e0ca13e | 2017-06-13 16:29:09 -0500 | [diff] [blame] | 4 | #include <algorithm> |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 5 | #include <sdbusplus/bus.hpp> |
| 6 | #include "fan.hpp" |
| 7 | #include "types.hpp" |
Matthew Barth | 8600d9a | 2017-06-23 14:38:05 -0500 | [diff] [blame] | 8 | #include "timer.hpp" |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 9 | |
| 10 | namespace phosphor |
| 11 | { |
| 12 | namespace fan |
| 13 | { |
| 14 | namespace control |
| 15 | { |
| 16 | |
| 17 | /** |
Matthew Barth | 1418413 | 2017-05-19 14:37:30 -0500 | [diff] [blame] | 18 | * The mode fan control will run in: |
| 19 | * - init - only do the initialization steps |
| 20 | * - control - run normal control algorithms |
| 21 | */ |
| 22 | enum class Mode |
| 23 | { |
| 24 | init, |
| 25 | control |
| 26 | }; |
| 27 | |
| 28 | /** |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 29 | * @class Represents a fan control zone, which is a group of fans |
| 30 | * that behave the same. |
| 31 | */ |
| 32 | class Zone |
| 33 | { |
| 34 | public: |
| 35 | |
| 36 | Zone() = delete; |
| 37 | Zone(const Zone&) = delete; |
| 38 | Zone(Zone&&) = default; |
| 39 | Zone& operator=(const Zone&) = delete; |
| 40 | Zone& operator=(Zone&&) = delete; |
| 41 | ~Zone() = default; |
| 42 | |
| 43 | /** |
| 44 | * Constructor |
| 45 | * Creates the appropriate fan objects based on |
| 46 | * the zone definition data passed in. |
| 47 | * |
Matthew Barth | 1418413 | 2017-05-19 14:37:30 -0500 | [diff] [blame] | 48 | * @param[in] mode - mode of fan control |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 49 | * @param[in] bus - the dbus object |
Matthew Barth | 8600d9a | 2017-06-23 14:38:05 -0500 | [diff] [blame] | 50 | * @param[in] events - sd_event pointer |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 51 | * @param[in] def - the fan zone definition data |
| 52 | */ |
Matthew Barth | 1418413 | 2017-05-19 14:37:30 -0500 | [diff] [blame] | 53 | Zone(Mode mode, |
| 54 | sdbusplus::bus::bus& bus, |
Matthew Barth | 8600d9a | 2017-06-23 14:38:05 -0500 | [diff] [blame] | 55 | phosphor::fan::event::EventPtr& events, |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 56 | const ZoneDefinition& def); |
| 57 | |
| 58 | /** |
| 59 | * Sets all fans in the zone to the speed |
Matthew Barth | 60b0076 | 2017-08-15 13:39:06 -0500 | [diff] [blame] | 60 | * passed in when the zone is active |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 61 | * |
| 62 | * @param[in] speed - the fan speed |
| 63 | */ |
| 64 | void setSpeed(uint64_t speed); |
| 65 | |
| 66 | /** |
Matthew Barth | 60b0076 | 2017-08-15 13:39:06 -0500 | [diff] [blame] | 67 | * Sets the zone to full speed regardless of zone's active state |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 68 | */ |
Matthew Barth | 60b0076 | 2017-08-15 13:39:06 -0500 | [diff] [blame] | 69 | void setFullSpeed(); |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 70 | |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 71 | /** |
Matthew Barth | 861d77c | 2017-05-22 14:18:25 -0500 | [diff] [blame] | 72 | * @brief Sets the automatic fan control allowed active state |
| 73 | * |
| 74 | * @param[in] group - A group that affects the active state |
| 75 | * @param[in] isActiveAllow - Active state according to group |
| 76 | */ |
| 77 | void setActiveAllow(const Group* group, bool isActiveAllow); |
| 78 | |
| 79 | /** |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 80 | * @brief Sets a given object's property value |
| 81 | * |
| 82 | * @param[in] object - Name of the object containing the property |
Matthew Barth | cec5ab7 | 2017-06-02 15:20:56 -0500 | [diff] [blame] | 83 | * @param[in] interface - Interface name containing the property |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 84 | * @param[in] property - Property name |
| 85 | * @param[in] value - Property value |
| 86 | */ |
Matthew Barth | 9e741ed | 2017-06-02 16:29:09 -0500 | [diff] [blame] | 87 | template <typename T> |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 88 | void setPropertyValue(const char* object, |
Matthew Barth | cec5ab7 | 2017-06-02 15:20:56 -0500 | [diff] [blame] | 89 | const char* interface, |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 90 | const char* property, |
Matthew Barth | 9e741ed | 2017-06-02 16:29:09 -0500 | [diff] [blame] | 91 | T value) |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 92 | { |
Matthew Barth | cec5ab7 | 2017-06-02 15:20:56 -0500 | [diff] [blame] | 93 | _properties[object][interface][property] = value; |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 94 | }; |
| 95 | |
Matthew Barth | 17d1fe2 | 2017-05-11 15:00:36 -0500 | [diff] [blame] | 96 | /** |
| 97 | * @brief Get the value of an object's property |
| 98 | * |
| 99 | * @param[in] object - Name of the object containing the property |
Matthew Barth | cec5ab7 | 2017-06-02 15:20:56 -0500 | [diff] [blame] | 100 | * @param[in] interface - Interface name containing the property |
Matthew Barth | 17d1fe2 | 2017-05-11 15:00:36 -0500 | [diff] [blame] | 101 | * @param[in] property - Property name |
| 102 | * |
| 103 | * @return - The property value |
| 104 | */ |
Matthew Barth | 9e741ed | 2017-06-02 16:29:09 -0500 | [diff] [blame] | 105 | template <typename T> |
Matthew Barth | 17d1fe2 | 2017-05-11 15:00:36 -0500 | [diff] [blame] | 106 | inline auto getPropertyValue(const std::string& object, |
Matthew Barth | cec5ab7 | 2017-06-02 15:20:56 -0500 | [diff] [blame] | 107 | const std::string& interface, |
Matthew Barth | 17d1fe2 | 2017-05-11 15:00:36 -0500 | [diff] [blame] | 108 | const std::string& property) |
| 109 | { |
Matthew Barth | 9e741ed | 2017-06-02 16:29:09 -0500 | [diff] [blame] | 110 | return sdbusplus::message::variant_ns::get<T>( |
Matthew Barth | bc65160 | 2017-08-10 16:59:43 -0500 | [diff] [blame] | 111 | _properties.at(object).at(interface).at(property)); |
Matthew Barth | 17d1fe2 | 2017-05-11 15:00:36 -0500 | [diff] [blame] | 112 | }; |
| 113 | |
Matthew Barth | 1de6662 | 2017-06-12 13:13:02 -0500 | [diff] [blame] | 114 | /** |
Matthew Barth | 604329e | 2017-08-04 11:18:28 -0500 | [diff] [blame] | 115 | * @brief Get the object's property variant |
| 116 | * |
| 117 | * @param[in] object - Name of the object containing the property |
| 118 | * @param[in] interface - Interface name containing the property |
| 119 | * @param[in] property - Property name |
| 120 | * |
| 121 | * @return - The property variant |
| 122 | */ |
| 123 | inline auto getPropValueVariant(const std::string& object, |
| 124 | const std::string& interface, |
| 125 | const std::string& property) |
| 126 | { |
| 127 | return _properties.at(object).at(interface).at(property); |
| 128 | }; |
| 129 | |
| 130 | /** |
Matthew Barth | e59fdf7 | 2017-09-27 09:33:42 -0500 | [diff] [blame] | 131 | * @brief Set or update a service name owner in use |
| 132 | * |
| 133 | * @param[in] group - Group associated with service |
| 134 | * @param[in] name - Service name |
| 135 | * @param[in] hasOwner - Whether the service is owned or not |
| 136 | */ |
| 137 | void setServiceOwner(const Group* group, |
| 138 | const std::string& name, |
| 139 | const bool hasOwner); |
| 140 | |
| 141 | /** |
Matthew Barth | 604329e | 2017-08-04 11:18:28 -0500 | [diff] [blame] | 142 | * @brief Initialize a set speed event properties and actions |
| 143 | * |
| 144 | * @param[in] event - Set speed event |
| 145 | */ |
| 146 | void initEvent(const SetSpeedEvent& event); |
| 147 | |
| 148 | /** |
Matthew Barth | f6b76d8 | 2017-08-04 12:58:02 -0500 | [diff] [blame] | 149 | * @brief Removes all the set speed event properties and actions |
| 150 | * |
| 151 | * @param[in] event - Set speed event |
| 152 | */ |
| 153 | void removeEvent(const SetSpeedEvent& event); |
| 154 | |
| 155 | /** |
Matthew Barth | 1de6662 | 2017-06-12 13:13:02 -0500 | [diff] [blame] | 156 | * @brief Get the default floor speed |
| 157 | * |
| 158 | * @return - The defined default floor speed |
| 159 | */ |
| 160 | inline auto getDefFloor() |
| 161 | { |
| 162 | return _defFloorSpeed; |
| 163 | }; |
| 164 | |
Matthew Barth | 4af419c | 2017-06-12 13:39:31 -0500 | [diff] [blame] | 165 | /** |
Matthew Barth | e0ca13e | 2017-06-13 16:29:09 -0500 | [diff] [blame] | 166 | * @brief Get the ceiling speed |
| 167 | * |
| 168 | * @return - The current ceiling speed |
| 169 | */ |
| 170 | inline auto& getCeiling() const |
| 171 | { |
| 172 | return _ceilingSpeed; |
| 173 | }; |
| 174 | |
| 175 | /** |
| 176 | * @brief Set the ceiling speed to the given speed |
| 177 | * |
| 178 | * @param[in] speed - Speed to set the ceiling to |
| 179 | */ |
| 180 | inline void setCeiling(uint64_t speed) |
| 181 | { |
| 182 | _ceilingSpeed = speed; |
| 183 | }; |
| 184 | |
| 185 | /** |
| 186 | * @brief Swaps the ceiling key value with what's given and |
| 187 | * returns the value that was swapped. |
| 188 | * |
| 189 | * @param[in] keyValue - New ceiling key value |
| 190 | * |
| 191 | * @return - Ceiling key value prior to swapping |
| 192 | */ |
| 193 | inline auto swapCeilingKeyValue(int64_t keyValue) |
| 194 | { |
| 195 | std::swap(_ceilingKeyValue, keyValue); |
| 196 | return keyValue; |
| 197 | }; |
| 198 | |
Matthew Barth | 2462352 | 2017-06-21 14:09:57 -0500 | [diff] [blame] | 199 | /** |
| 200 | * @brief Get the increase speed delta |
| 201 | * |
| 202 | * @return - The current increase speed delta |
| 203 | */ |
| 204 | inline auto& getIncSpeedDelta() const |
| 205 | { |
| 206 | return _incSpeedDelta; |
| 207 | }; |
| 208 | |
Matthew Barth | 240397b | 2017-06-22 11:23:30 -0500 | [diff] [blame] | 209 | /** |
Matthew Barth | 0ce99d8 | 2017-06-22 15:07:29 -0500 | [diff] [blame] | 210 | * @brief Get the decrease speed delta |
| 211 | * |
| 212 | * @return - The current decrease speed delta |
| 213 | */ |
| 214 | inline auto& getDecSpeedDelta() const |
| 215 | { |
| 216 | return _decSpeedDelta; |
| 217 | }; |
| 218 | |
| 219 | /** |
Matthew Barth | b4a7cb9 | 2017-06-28 15:29:50 -0500 | [diff] [blame] | 220 | * @brief Set the floor speed to the given speed and increase target |
| 221 | * speed to the floor when target is below floor. |
| 222 | * |
| 223 | * @param[in] speed - Speed to set the floor to |
| 224 | */ |
| 225 | void setFloor(uint64_t speed); |
| 226 | |
| 227 | /** |
Matthew Barth | 1bfdc42 | 2017-09-14 16:23:28 -0500 | [diff] [blame] | 228 | * @brief Set the requested speed base to be used as the speed to |
| 229 | * base a new requested speed target from |
| 230 | * |
| 231 | * @param[in] speedBase - Base speed value to use |
| 232 | */ |
| 233 | inline void setRequestSpeedBase(uint64_t speedBase) |
| 234 | { |
| 235 | _requestSpeedBase = speedBase; |
| 236 | }; |
| 237 | |
| 238 | /** |
Matthew Barth | 240397b | 2017-06-22 11:23:30 -0500 | [diff] [blame] | 239 | * @brief Calculate the requested target speed from the given delta |
| 240 | * and increase the fan speeds, not going above the ceiling. |
| 241 | * |
| 242 | * @param[in] targetDelta - The delta to increase the target speed by |
| 243 | */ |
| 244 | void requestSpeedIncrease(uint64_t targetDelta); |
| 245 | |
Matthew Barth | 0ce99d8 | 2017-06-22 15:07:29 -0500 | [diff] [blame] | 246 | /** |
| 247 | * @brief Calculate the requested target speed from the given delta |
| 248 | * and increase the fan speeds, not going above the ceiling. |
| 249 | * |
| 250 | * @param[in] targetDelta - The delta to increase the target speed by |
| 251 | */ |
| 252 | void requestSpeedDecrease(uint64_t targetDelta); |
| 253 | |
Matthew Barth | 8600d9a | 2017-06-23 14:38:05 -0500 | [diff] [blame] | 254 | /** |
Matthew Barth | 1ee48f2 | 2017-06-27 15:14:48 -0500 | [diff] [blame] | 255 | * @brief Callback function for the increase timer that delays |
| 256 | * processing of requested speed increases while fans are increasing |
| 257 | */ |
| 258 | void incTimerExpired(); |
| 259 | |
| 260 | /** |
Matthew Barth | 8600d9a | 2017-06-23 14:38:05 -0500 | [diff] [blame] | 261 | * @brief Callback function for the decrease timer that processes any |
| 262 | * requested speed decreases if allowed |
| 263 | */ |
| 264 | void decTimerExpired(); |
| 265 | |
Matthew Barth | 9014980 | 2017-08-15 10:51:37 -0500 | [diff] [blame] | 266 | /** |
| 267 | * @brief Callback function for event timers that processes the given |
Matthew Barth | f9201ab | 2017-09-11 16:07:58 -0500 | [diff] [blame] | 268 | * actions for a group |
Matthew Barth | 9014980 | 2017-08-15 10:51:37 -0500 | [diff] [blame] | 269 | * |
Matthew Barth | f9201ab | 2017-09-11 16:07:58 -0500 | [diff] [blame] | 270 | * @param[in] eventGroup - Group to process actions on |
| 271 | * @param[in] eventActions - List of event actions to run |
Matthew Barth | 9014980 | 2017-08-15 10:51:37 -0500 | [diff] [blame] | 272 | */ |
Matthew Barth | f9201ab | 2017-09-11 16:07:58 -0500 | [diff] [blame] | 273 | void timerExpired(Group eventGroup, std::vector<Action> eventActions); |
Matthew Barth | 9014980 | 2017-08-15 10:51:37 -0500 | [diff] [blame] | 274 | |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 275 | private: |
| 276 | |
| 277 | /** |
| 278 | * The dbus object |
| 279 | */ |
| 280 | sdbusplus::bus::bus& _bus; |
| 281 | |
| 282 | /** |
| 283 | * Full speed for the zone |
| 284 | */ |
| 285 | const uint64_t _fullSpeed; |
| 286 | |
| 287 | /** |
| 288 | * The zone number |
| 289 | */ |
| 290 | const size_t _zoneNum; |
| 291 | |
| 292 | /** |
Matthew Barth | 1de6662 | 2017-06-12 13:13:02 -0500 | [diff] [blame] | 293 | * The default floor speed for the zone |
| 294 | */ |
| 295 | const uint64_t _defFloorSpeed; |
| 296 | |
| 297 | /** |
Matthew Barth | e0ca13e | 2017-06-13 16:29:09 -0500 | [diff] [blame] | 298 | * The default ceiling speed for the zone |
| 299 | */ |
| 300 | const uint64_t _defCeilingSpeed; |
| 301 | |
| 302 | /** |
Matthew Barth | 4af419c | 2017-06-12 13:39:31 -0500 | [diff] [blame] | 303 | * The floor speed to not go below |
| 304 | */ |
| 305 | uint64_t _floorSpeed = _defFloorSpeed; |
| 306 | |
| 307 | /** |
Matthew Barth | e0ca13e | 2017-06-13 16:29:09 -0500 | [diff] [blame] | 308 | * The ceiling speed to not go above |
| 309 | */ |
| 310 | uint64_t _ceilingSpeed = _defCeilingSpeed; |
| 311 | |
| 312 | /** |
| 313 | * The previous sensor value for calculating the ceiling |
| 314 | */ |
| 315 | int64_t _ceilingKeyValue = 0; |
| 316 | |
| 317 | /** |
Matthew Barth | 861d77c | 2017-05-22 14:18:25 -0500 | [diff] [blame] | 318 | * Automatic fan control active state |
| 319 | */ |
| 320 | bool _isActive = true; |
| 321 | |
| 322 | /** |
Matthew Barth | 240397b | 2017-06-22 11:23:30 -0500 | [diff] [blame] | 323 | * Target speed for this zone |
| 324 | */ |
| 325 | uint64_t _targetSpeed = _fullSpeed; |
| 326 | |
| 327 | /** |
Matthew Barth | 2462352 | 2017-06-21 14:09:57 -0500 | [diff] [blame] | 328 | * Speed increase delta |
| 329 | */ |
| 330 | uint64_t _incSpeedDelta = 0; |
| 331 | |
| 332 | /** |
Matthew Barth | 0ce99d8 | 2017-06-22 15:07:29 -0500 | [diff] [blame] | 333 | * Speed decrease delta |
| 334 | */ |
| 335 | uint64_t _decSpeedDelta = 0; |
| 336 | |
| 337 | /** |
Matthew Barth | 1bfdc42 | 2017-09-14 16:23:28 -0500 | [diff] [blame] | 338 | * Requested speed base |
| 339 | */ |
| 340 | uint64_t _requestSpeedBase = 0; |
| 341 | |
| 342 | /** |
Matthew Barth | a956184 | 2017-06-29 11:43:45 -0500 | [diff] [blame] | 343 | * Speed increase delay in seconds |
| 344 | */ |
| 345 | std::chrono::seconds _incDelay; |
| 346 | |
| 347 | /** |
| 348 | * Speed decrease interval in seconds |
| 349 | */ |
| 350 | std::chrono::seconds _decInterval; |
| 351 | |
| 352 | /** |
Matthew Barth | 1ee48f2 | 2017-06-27 15:14:48 -0500 | [diff] [blame] | 353 | * The increase timer object |
| 354 | */ |
| 355 | phosphor::fan::util::Timer _incTimer; |
| 356 | |
| 357 | /** |
Matthew Barth | 8600d9a | 2017-06-23 14:38:05 -0500 | [diff] [blame] | 358 | * The decrease timer object |
| 359 | */ |
| 360 | phosphor::fan::util::Timer _decTimer; |
| 361 | |
| 362 | /** |
Matthew Barth | 9014980 | 2017-08-15 10:51:37 -0500 | [diff] [blame] | 363 | * Dbus event used on set speed event timers |
| 364 | */ |
| 365 | phosphor::fan::event::EventPtr& _sdEvents; |
| 366 | |
| 367 | /** |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 368 | * The vector of fans in this zone |
| 369 | */ |
| 370 | std::vector<std::unique_ptr<Fan>> _fans; |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 371 | |
| 372 | /** |
| 373 | * @brief Map of object property values |
| 374 | */ |
Matthew Barth | cec5ab7 | 2017-06-02 15:20:56 -0500 | [diff] [blame] | 375 | std::map<std::string, |
| 376 | std::map<std::string, |
| 377 | std::map<std::string, |
Matthew Barth | 9e741ed | 2017-06-02 16:29:09 -0500 | [diff] [blame] | 378 | PropertyVariantType>>> _properties; |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 379 | |
| 380 | /** |
Matthew Barth | 861d77c | 2017-05-22 14:18:25 -0500 | [diff] [blame] | 381 | * @brief Map of active fan control allowed by groups |
| 382 | */ |
Matthew Barth | 60b0076 | 2017-08-15 13:39:06 -0500 | [diff] [blame] | 383 | std::map<const Group, bool> _active; |
Matthew Barth | 861d77c | 2017-05-22 14:18:25 -0500 | [diff] [blame] | 384 | |
| 385 | /** |
Matthew Barth | e59fdf7 | 2017-09-27 09:33:42 -0500 | [diff] [blame] | 386 | * @brief Map of group service names |
| 387 | */ |
| 388 | std::map<const Group, std::vector<Service>> _services; |
| 389 | |
| 390 | /** |
Matthew Barth | f6b76d8 | 2017-08-04 12:58:02 -0500 | [diff] [blame] | 391 | * @brief List of signal event arguments and Dbus matches for callbacks |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 392 | */ |
Matthew Barth | f6b76d8 | 2017-08-04 12:58:02 -0500 | [diff] [blame] | 393 | std::vector<SignalEvent> _signalEvents; |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 394 | |
| 395 | /** |
Matthew Barth | 9014980 | 2017-08-15 10:51:37 -0500 | [diff] [blame] | 396 | * @brief List of timers for events |
| 397 | */ |
| 398 | std::vector<std::unique_ptr<phosphor::fan::util::Timer>> _timerEvents; |
| 399 | |
| 400 | /** |
Matthew Barth | 4e72854 | 2017-09-14 16:47:55 -0500 | [diff] [blame] | 401 | * @brief Get the request speed base if defined, otherwise the |
| 402 | * the current target speed is returned |
| 403 | * |
| 404 | * @return - The request speed base or current target speed |
| 405 | */ |
| 406 | inline auto getRequestSpeedBase() const |
| 407 | { |
| 408 | return (_requestSpeedBase != 0) ? _requestSpeedBase : _targetSpeed; |
| 409 | }; |
| 410 | |
| 411 | /** |
Matthew Barth | 34f1bda | 2017-05-31 13:45:36 -0500 | [diff] [blame] | 412 | * @brief Dbus signal change callback handler |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 413 | * |
Matthew Barth | 34f1bda | 2017-05-31 13:45:36 -0500 | [diff] [blame] | 414 | * @param[in] msg - Expanded sdbusplus message data |
| 415 | * @param[in] eventData - The single event's data |
Matthew Barth | 38a93a8 | 2017-05-11 14:12:27 -0500 | [diff] [blame] | 416 | */ |
Matthew Barth | 34f1bda | 2017-05-31 13:45:36 -0500 | [diff] [blame] | 417 | void handleEvent(sdbusplus::message::message& msg, |
| 418 | const EventData* eventData); |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 419 | }; |
| 420 | |
| 421 | } |
| 422 | } |
| 423 | } |