--- nono/host/hostcom.h 2026/04/29 17:05:11 1.1.1.1 +++ nono/host/hostcom.h 2026/04/29 17:05:39 1.1.1.5 @@ -12,7 +12,6 @@ #include "hostdevice.h" #include "comdriver.h" -#include "monitor.h" #include "spscqueue.h" class HostCOMDevice : public HostDevice @@ -29,16 +28,16 @@ class HostCOMDevice : public HostDevice uint64 write_bytes; // ホストへの書き出しバイト数 uint64 read_bytes; // ホストからの読み込みバイト数 - int txq_peak; // キューのおおよその最大使用量 - int rxq_peak; // キューのおおよその最大使用量 + uint txq_peak; // キューのおおよその最大使用量 + uint rxq_peak; // キューのおおよその最大使用量 }; public: - HostCOMDevice(const std::string& objname_); + HostCOMDevice(Device *parent_, const std::string& objname_); ~HostCOMDevice() override; void SetLogLevel(int loglevel_) override; - bool Init() override; + bool Create2() override; void Dispatch(int udata) override; bool Tx(uint32 data); @@ -61,5 +60,5 @@ class HostCOMDevice : public HostDevice // 統計情報 struct stat_t stat {}; - Monitor monitor { this }; + Monitor *monitor {}; };