X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37465b7281eb2a5202b765f1b67b4ec6126f816c..982d7f931701e2d65182f798e9182139efd67ed7:/src/os2/sockpm.cpp diff --git a/src/os2/sockpm.cpp b/src/os2/sockpm.cpp index 540f647a36..8aa2c2f008 100644 --- a/src/os2/sockpm.cpp +++ b/src/os2/sockpm.cpp @@ -23,22 +23,24 @@ static void wxSocket_PM_Input(void *data) { - wxSocketImpl *handler = static_cast(data); + wxFDIOHandler *handler = static_cast(data); handler->OnReadWaiting(); } static void wxSocket_PM_Output(void *data) { - wxSocketImpl *handler = static_cast(data); + wxFDIOHandler *handler = static_cast(data); handler->OnWriteWaiting(); } -class PMSocketManager : public wxSocketInputBasedManager +class PMFDIOManager : public wxFDIOManager { public: - virtual int AddInput(wxSocketImpl *handler, int fd, SocketDir d) + virtual int AddInput(wxFDIOHandler *handler, + int fd, + wxFDIOManager::Direction d) { if (d == FD_OUTPUT) return wxTheApp->AddSocketHandler(fd, wxSockWriteMask, @@ -48,15 +50,18 @@ public: wxSocket_PM_Input, handler); } - virtual void RemoveInput(int fd) + virtual void + RemoveInput(wxFDIOHandler * WXUNUSED(handler), + int fd, + wxFDIOManager::Direction WXUNUSED(dir)) { wxTheApp->RemoveSocketHandler(fd); } }; -wxSocketManager *wxGUIAppTraits::GetSocketManager() +wxFDIOManager *wxGUIAppTraits::GetFDIOManager() { - static PMSocketManager s_manager; + static PMFDIOManager s_manager; return &s_manager; }