summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/upnp/Callback.hxx2
-rw-r--r--src/lib/upnp/Discovery.cxx2
-rw-r--r--src/lib/upnp/Discovery.hxx2
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;
};