mirror of https://code.videolan.org/videolan/vlc
upnp: removes code depending on libupnp < 1.8.3
Support for older versions was dropped by the previous commits.
This commit is contained in:
parent
8e05bad0c9
commit
6eed7670c1
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue