upnp: removes code depending on libupnp < 1.8.3

Support for older versions was dropped by the previous commits.
This commit is contained in:
Alaric Senat 2022-04-05 13:21:11 +02:00 committed by Jean-Baptiste Kempf
parent 8e05bad0c9
commit 6eed7670c1
1 changed files with 0 additions and 28 deletions

View File

@ -39,11 +39,7 @@
#include <upnp.h>
#include <upnptools.h>
#if UPNP_VERSION < 10800
typedef void* UpnpEventPtr;
#else
typedef const void* UpnpEventPtr;
#endif
/**
* libUpnp allows only one instance per process, so we create a wrapper
@ -93,30 +89,6 @@ private:
// Helper functions
// **************************
#if UPNP_VERSION < 10623
/*
* Compat functions and typedefs for libupnp prior to 1.8
*/
typedef Upnp_Discovery UpnpDiscovery;
typedef Upnp_Action_Complete UpnpActionComplete;
inline const char* UpnpDiscovery_get_Location_cstr( const UpnpDiscovery* p_discovery )
{
return p_discovery->Location;
}
inline const char* UpnpDiscovery_get_DeviceID_cstr( const UpnpDiscovery* p_discovery )
{
return p_discovery->DeviceId;
}
inline static IXML_Document* UpnpActionComplete_get_ActionResult( const UpnpActionComplete* p_result )
{
return p_result->ActionResult;
}
#endif
/*
* Returns the value of a child element, or NULL on error
*/