--- nono/host/netdriver.h 2026/04/29 17:04:30 1.1.1.2 +++ nono/host/netdriver.h 2026/04/29 17:04:37 1.1.1.4 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2019 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -15,10 +16,10 @@ class NetDriver : public Object public: // コンストラクタ NetDriver(const char *name, EthernetDevice *parent, - std::mutex *m, std::condition_variable *c); + std::mutex *mtx, std::condition_variable *cv); // デストラクタ。 - virtual ~NetDriver(); + ~NetDriver() override; // 初期化 & オープン。 // EthernetDevice::Init() から呼ばれる。諸制約については device.h 参照。 @@ -28,7 +29,7 @@ class NetDriver : public Object // また、クローズ相当の動作はなくデストラクタで行う。 virtual bool Init() = 0; - virtual bool MonitorUpdate(); + void MonitorUpdate(TextScreen&) override; // パケットを送信する。正常に送信できれば true を返す。 // EthernetDevice::SendPacket() が呼ばれると常に呼び出される。