From 952ff4207bcbf9cd0a19c9b5fb438a3cac2cbd4c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 16 Nov 2017 11:37:58 +0100 Subject: [PATCH] lib/upnp/Callback: make "evp" parameter const --- src/lib/upnp/Callback.hxx | 2 +- src/lib/upnp/Discovery.cxx | 2 +- src/lib/upnp/Discovery.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/upnp/Callback.hxx b/src/lib/upnp/Callback.hxx index a57cfbdcd..2f559ab3f 100644 --- a/src/lib/upnp/Callback.hxx +++ b/src/lib/upnp/Callback.hxx @@ -40,7 +40,7 @@ public: return *(UpnpCallback *)cookie; } - virtual int Invoke(Upnp_EventType et, void *evp) = 0; + virtual int Invoke(Upnp_EventType et, const void *evp) = 0; }; #endif diff --git a/src/lib/upnp/Discovery.cxx b/src/lib/upnp/Discovery.cxx index 955d59ef6..1dec2ed98 100644 --- a/src/lib/upnp/Discovery.cxx +++ b/src/lib/upnp/Discovery.cxx @@ -182,7 +182,7 @@ UPnPDeviceDirectory::OnByeBye(const Upnp_Discovery *disco) // Example: ContentDirectories appearing and disappearing from the network // We queue a task for our worker thread(s) int -UPnPDeviceDirectory::Invoke(Upnp_EventType et, void *evp) +UPnPDeviceDirectory::Invoke(Upnp_EventType et, const void *evp) { switch (et) { case UPNP_DISCOVERY_SEARCH_RESULT: diff --git a/src/lib/upnp/Discovery.hxx b/src/lib/upnp/Discovery.hxx index ec92b2b33..7f7ac8fa6 100644 --- a/src/lib/upnp/Discovery.hxx +++ b/src/lib/upnp/Discovery.hxx @@ -157,7 +157,7 @@ private: int OnByeBye(const Upnp_Discovery *disco); /* virtual methods from class UpnpCallback */ - virtual int Invoke(Upnp_EventType et, void *evp) override; + virtual int Invoke(Upnp_EventType et, const void *evp) override; };