mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibCore: Move LibGUI/GNotifier to LibCore/CNotifier.
This commit is contained in:
15
LibCore/CNotifier.cpp
Normal file
15
LibCore/CNotifier.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <LibCore/CNotifier.h>
|
||||
#include <LibGUI/GEventLoop.h>
|
||||
|
||||
CNotifier::CNotifier(int fd, unsigned event_mask)
|
||||
: m_fd(fd)
|
||||
, m_event_mask(event_mask)
|
||||
{
|
||||
GEventLoop::register_notifier(Badge<CNotifier>(), *this);
|
||||
}
|
||||
|
||||
CNotifier::~CNotifier()
|
||||
{
|
||||
GEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user