--- nono/host/driver.h 2026/04/29 17:05:21 1.1.1.2 +++ nono/host/driver.h 2026/04/29 17:05:39 1.1.1.4 @@ -24,7 +24,7 @@ class Driver : public Object protected: Driver(HostDevice *hostdev_, const char *drivername_); public: - virtual ~Driver() override; + ~Driver() override; virtual bool InitDriver(); @@ -41,6 +41,9 @@ class Driver : public Object // ドライバ名を取得。 const char *GetDriverName() const { return drivername; } + // 親ホストデバイス(基本クラス)を取得。 + HostDevice *GetHostDev() const { return hostdev; } + protected: // 親ホストデバイス HostDevice *hostdev {};