--- nono/host/hostdevice.h 2026/04/29 17:05:18 1.1.1.2 +++ 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(int objid_); + HostDevice(Device *parent_, int objid_); public: virtual ~HostDevice() override; @@ -45,7 +45,6 @@ class HostDevice : public ThreadDevice int DelOuter(int fd); int AddListen(int ls, int action); - void SetCallbackDevice(Device *); void SetRxCallback(DeviceCallback_t func); void SetAcceptCallback(DeviceCallback_t func); @@ -65,6 +64,9 @@ class HostDevice : public ThreadDevice // ログ出力 void putlogn(const char *fmt, ...) const override __printflike(2, 3); + // 親デバイス + Device *parent {}; + autofd kq {}; // VM からの送信用パイプ @@ -72,7 +74,6 @@ class HostDevice : public ThreadDevice autofd wpipe {}; // 各種通知コールバック - Device *dev {}; DeviceCallback_t rx_func {}; DeviceCallback_t accept_func {};