Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/UPnPBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,9 @@ bool CUPnPControlPoint::PrivateDeletePortMapping(


// This function is static
#if UPNP_VERSION >= 10800
#if UPNP_VERSION >= 11800
int CUPnPControlPoint::Callback(Upnp_EventType_e EventType, void *Event, void * /*Cookie*/)
#elif UPNP_VERSION >= 10800
int CUPnPControlPoint::Callback(Upnp_EventType_e EventType, const void *Event, void * /*Cookie*/)
#else
int CUPnPControlPoint::Callback(Upnp_EventType EventType, void *Event, void * /*Cookie*/)
Expand Down
6 changes: 5 additions & 1 deletion src/UPnPBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,11 @@ class CUPnPControlPoint

// Callback function
static int Callback(
#if UPNP_VERSION >= 10800
#if UPNP_VERSION >= 11800
Upnp_EventType_e EventType,
void *Event,
void *Cookie);
#elif UPNP_VERSION >= 10800
Upnp_EventType_e EventType,
const void *Event,
void *Cookie);
Expand Down
Loading