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

This commit is contained in:
Max Kellermann 2017-11-16 11:37:58 +01:00
parent 150b16ec2c
commit 952ff4207b
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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:

View File

@ -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;
};