diff options
author | Max Kellermann <max@musicpd.org> | 2017-11-16 11:37:58 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-11-16 11:37:58 +0100 |
commit | 952ff4207bcbf9cd0a19c9b5fb438a3cac2cbd4c (patch) | |
tree | d3ac1af356ab3409cc8b42f06d699c06953e6804 /src/lib/upnp | |
parent | 150b16ec2c335d2f4b2006d5da4069d0c59050cb (diff) |
lib/upnp/Callback: make "evp" parameter const
Diffstat (limited to 'src/lib/upnp')
-rw-r--r-- | src/lib/upnp/Callback.hxx | 2 | ||||
-rw-r--r-- | src/lib/upnp/Discovery.cxx | 2 | ||||
-rw-r--r-- | 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; }; |