mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
16 lines
347 B
C++
16 lines
347 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(Badge<CNotifier>(), *this);
|
|
}
|
|
|
|
CNotifier::~CNotifier()
|
|
{
|
|
CEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
|
|
}
|