lib/upnp: adapt to libupnp 1.8 API changes

Closes #155
This commit is contained in:
Max Kellermann
2017-11-16 11:39:11 +01:00
parent 952ff4207b
commit 714011c81e
6 changed files with 98 additions and 16 deletions

View File

@@ -33,7 +33,12 @@ static unsigned upnp_client_ref;
static UpnpClient_Handle upnp_client_handle;
static int
UpnpClientCallback(Upnp_EventType et, void *evp, void *cookie)
UpnpClientCallback(Upnp_EventType et,
#if UPNP_VERSION >= 10800
const
#endif
void *evp,
void *cookie)
{
if (cookie == nullptr)
/* this is the cookie passed to UpnpRegisterClient();