Commit 952ff420 authored by Max Kellermann's avatar Max Kellermann

lib/upnp/Callback: make "evp" parameter const

parent 150b16ec
...@@ -40,7 +40,7 @@ public: ...@@ -40,7 +40,7 @@ public:
return *(UpnpCallback *)cookie; return *(UpnpCallback *)cookie;
} }
virtual int Invoke(Upnp_EventType et, void *evp) = 0; virtual int Invoke(Upnp_EventType et, const void *evp) = 0;
}; };
#endif #endif
...@@ -182,7 +182,7 @@ UPnPDeviceDirectory::OnByeBye(const Upnp_Discovery *disco) ...@@ -182,7 +182,7 @@ UPnPDeviceDirectory::OnByeBye(const Upnp_Discovery *disco)
// Example: ContentDirectories appearing and disappearing from the network // Example: ContentDirectories appearing and disappearing from the network
// We queue a task for our worker thread(s) // We queue a task for our worker thread(s)
int int
UPnPDeviceDirectory::Invoke(Upnp_EventType et, void *evp) UPnPDeviceDirectory::Invoke(Upnp_EventType et, const void *evp)
{ {
switch (et) { switch (et) {
case UPNP_DISCOVERY_SEARCH_RESULT: case UPNP_DISCOVERY_SEARCH_RESULT:
......
...@@ -157,7 +157,7 @@ private: ...@@ -157,7 +157,7 @@ private:
int OnByeBye(const Upnp_Discovery *disco); int OnByeBye(const Upnp_Discovery *disco);
/* virtual methods from class UpnpCallback */ /* virtual methods from class UpnpCallback */
virtual int Invoke(Upnp_EventType et, void *evp) override; virtual int Invoke(Upnp_EventType et, const void *evp) override;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment