ladybird/Libraries/LibCore/CNotifier.cpp
Andreas Kling 04b9dc2d30 Libraries: Create top level directory for libraries.
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
2019-07-04 16:16:50 +02:00

16 lines
315 B
C++

#include <LibCore/CEvent.h>
#include <LibCore/CEventLoop.h>
#include <LibCore/CNotifier.h>
CNotifier::CNotifier(int fd, unsigned event_mask)
: m_fd(fd)
, m_event_mask(event_mask)
{
CEventLoop::register_notifier({}, *this);
}
CNotifier::~CNotifier()
{
CEventLoop::unregister_notifier({}, *this);
}