1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 07:17:35 +00:00

Kernel: Use a public member for NetworkAdapter on_receive

This commit is contained in:
Conrad Pankoff 2019-08-28 22:14:38 +10:00 committed by Andreas Kling
parent 6d1418aa7a
commit 498f8c01a2
3 changed files with 5 additions and 6 deletions

View file

@ -45,7 +45,7 @@ public:
u32 packets_out() const { return m_packets_out; }
u32 bytes_out() const { return m_bytes_out; }
void set_on_receive(Function<void()> on_receive) { m_on_receive = move(on_receive); }
Function<void()> on_receive;
protected:
NetworkAdapter();
@ -65,5 +65,4 @@ private:
u32 m_bytes_in { 0 };
u32 m_packets_out { 0 };
u32 m_bytes_out { 0 };
Function<void()> m_on_receive;
};