mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
LibCore: Prune remaining knowledge about LibGUI.
This commit is contained in:
parent
c736dbdf10
commit
667e678aa6
Notes:
sideshowbarker
2024-07-19 14:44:47 +09:00
Author: https://github.com/awesomekling
Commit: 667e678aa6
2 changed files with 16 additions and 15 deletions
|
@ -1,15 +1,16 @@
|
|||
#include <LibCore/CNotifier.h>
|
||||
#include <LibGUI/GEventLoop.h>
|
||||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CEvent.h>
|
||||
|
||||
CNotifier::CNotifier(int fd, unsigned event_mask)
|
||||
: m_fd(fd)
|
||||
, m_event_mask(event_mask)
|
||||
{
|
||||
GEventLoop::register_notifier(Badge<CNotifier>(), *this);
|
||||
CEventLoop::register_notifier(Badge<CNotifier>(), *this);
|
||||
}
|
||||
|
||||
CNotifier::~CNotifier()
|
||||
{
|
||||
GEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
|
||||
CEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue