mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:08:10 +00:00
LibCore: Make CSocket's notifiers into children of the CSocket
The Inspector app quickly exposes crappy flat object hiearchies without parent/child relationships. This is one of many commits that improves the situation by making parent/child CObject relationships explicit.
This commit is contained in:
parent
9d57e7ed68
commit
1b3599fbbc
3 changed files with 6 additions and 5 deletions
|
@ -12,7 +12,7 @@ public:
|
|||
Write = 2,
|
||||
Exceptional = 4,
|
||||
};
|
||||
CNotifier(int fd, unsigned event_mask);
|
||||
CNotifier(int fd, unsigned event_mask, CObject* parent = nullptr);
|
||||
virtual ~CNotifier() override;
|
||||
|
||||
void set_enabled(bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue