--- nono/host/hostdevice.h 2026/04/29 17:05:11 1.1.1.1 +++ nono/host/hostdevice.h 2026/04/29 17:05:21 1.1.1.3 @@ -29,7 +29,7 @@ class HostDevice : public ThreadDevice static const int DATA_FROM_SIGNAL = 4; // シグナル受信 protected: - HostDevice(const std::string& objname_); + HostDevice(Device *parent_, int objid_); public: virtual ~HostDevice() override; @@ -43,10 +43,8 @@ class HostDevice : public ThreadDevice // NetDriver からのディスクリプタの登録 int AddOuter(int fd); int DelOuter(int fd); - int AddSignal(int rfd, int wfd); int AddListen(int ls, int action); - void SetCallbackDevice(Device *); void SetRxCallback(DeviceCallback_t func); void SetAcceptCallback(DeviceCallback_t func); @@ -66,6 +64,9 @@ class HostDevice : public ThreadDevice // ログ出力 void putlogn(const char *fmt, ...) const override __printflike(2, 3); + // 親デバイス + Device *parent {}; + autofd kq {}; // VM からの送信用パイプ @@ -73,7 +74,6 @@ class HostDevice : public ThreadDevice autofd wpipe {}; // 各種通知コールバック - Device *dev {}; DeviceCallback_t rx_func {}; DeviceCallback_t accept_func {};