diff options
author | Peter Bozsó | 2016-07-30 08:45:11 +0200 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | a1de322c18d9efdf885ea5b760a404237dcdc0a8 (patch) | |
tree | e4f6e1ed65e2198f9420a86800c2cc5276351ef1 /backends/networking/sdl_net/localwebserver.h | |
parent | 712410496e4e59fe1ee1968a94eeb73b51223996 (diff) | |
download | scummvm-rg350-a1de322c18d9efdf885ea5b760a404237dcdc0a8.tar.gz scummvm-rg350-a1de322c18d9efdf885ea5b760a404237dcdc0a8.tar.bz2 scummvm-rg350-a1de322c18d9efdf885ea5b760a404237dcdc0a8.zip |
CLOUD: Use overriden handle() instead of ClientHandlerCallback in page handlers
Using a dedicated callback object for this was an unnecessary overhead.
Diffstat (limited to 'backends/networking/sdl_net/localwebserver.h')
-rw-r--r-- | backends/networking/sdl_net/localwebserver.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/networking/sdl_net/localwebserver.h b/backends/networking/sdl_net/localwebserver.h index f65d2a9551..5f5f7ef9fc 100644 --- a/backends/networking/sdl_net/localwebserver.h +++ b/backends/networking/sdl_net/localwebserver.h @@ -61,8 +61,8 @@ class LocalWebserver : public Common::Singleton<LocalWebserver> { Client _client[MAX_CONNECTIONS]; int _clients; bool _timerStarted, _stopOnIdle; - Common::HashMap<Common::String, ClientHandlerCallback> _pathHandlers; - ClientHandlerCallback _defaultHandler; + Common::HashMap<Common::String, BaseHandler*> _pathHandlers; + BaseHandler *_defaultHandler; IndexPageHandler _indexPageHandler; FilesPageHandler _filesPageHandler; CreateDirectoryHandler _createDirectoryHandler; @@ -82,7 +82,7 @@ class LocalWebserver : public Common::Singleton<LocalWebserver> { void handleClient(uint32 i); void acceptClient(); void resolveAddress(void *ipAddress); - void addPathHandler(Common::String path, ClientHandlerCallback handler); + void addPathHandler(Common::String path, BaseHandler *handler); public: static const uint32 DEFAULT_SERVER_PORT = 12345; |