blob: ba40435006c5abfd04927b25b565c9d0824ddc2b [file] [log] [blame]
#pragma once
#include "sdevent/event.hpp"
namespace phosphor
{
namespace fan
{
namespace util
{
/** @class SDEvent
* @brief DBus access delegate implementation for sdevent.
*/
class SDEvent
{
public:
/** @brief Get the event loop. */
static auto& getEvent()
{
static auto event = sdevent::event::newDefault();
return event;
}
};
} // namespace util
} // namespace fan
} // namespace phosphor