Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
736a696f
Commit
736a696f
authored
May 27, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/upnp: drop support for libupnp versions older than 1.8
parent
caec384e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
56 deletions
+4
-56
NEWS
NEWS
+2
-0
ClientInit.cxx
src/lib/upnp/ClientInit.cxx
+1
-4
Compat.hxx
src/lib/upnp/Compat.hxx
+0
-47
Discovery.hxx
src/lib/upnp/Discovery.hxx
+0
-4
meson.build
src/lib/upnp/meson.build
+1
-1
No files found.
NEWS
View file @
736a696f
...
...
@@ -14,6 +14,8 @@ ver 0.22 (not yet released)
- io_uring: new plugin for local files on Linux (using liburing)
* archive
- iso9660: support seeking
* database
- upnp: drop support for libupnp versions older than 1.8
* playlist
- cue: integrate contents in database
* decoder
...
...
src/lib/upnp/ClientInit.cxx
View file @
736a696f
...
...
@@ -33,10 +33,7 @@ static UpnpClient_Handle upnp_client_handle;
static
int
UpnpClientCallback
(
Upnp_EventType
et
,
#if UPNP_VERSION >= 10800
const
#endif
void
*
evp
,
const
void
*
evp
,
void
*
cookie
)
noexcept
{
if
(
cookie
==
nullptr
)
...
...
src/lib/upnp/Compat.hxx
View file @
736a696f
...
...
@@ -22,51 +22,4 @@
#include <upnp.h>
#if UPNP_VERSION < 10800
/* emulate the libupnp 1.8 API with older versions */
using
UpnpDiscovery
=
Upnp_Discovery
;
#endif
#if UPNP_VERSION < 10624
#include "util/Compiler.h"
gcc_pure
static
inline
int
UpnpDiscovery_get_Expires
(
const
UpnpDiscovery
*
disco
)
noexcept
{
return
disco
->
Expires
;
}
gcc_pure
static
inline
const
char
*
UpnpDiscovery_get_DeviceID_cstr
(
const
UpnpDiscovery
*
disco
)
noexcept
{
return
disco
->
DeviceId
;
}
gcc_pure
static
inline
const
char
*
UpnpDiscovery_get_DeviceType_cstr
(
const
UpnpDiscovery
*
disco
)
noexcept
{
return
disco
->
DeviceType
;
}
gcc_pure
static
inline
const
char
*
UpnpDiscovery_get_ServiceType_cstr
(
const
UpnpDiscovery
*
disco
)
noexcept
{
return
disco
->
ServiceType
;
}
gcc_pure
static
inline
const
char
*
UpnpDiscovery_get_Location_cstr
(
const
UpnpDiscovery
*
disco
)
noexcept
{
return
disco
->
Location
;
}
#endif
#endif
src/lib/upnp/Discovery.hxx
View file @
736a696f
...
...
@@ -38,10 +38,6 @@
#include <string>
#include <chrono>
#if UPNP_VERSION < 10800
#define UpnpDiscovery Upnp_Discovery
#endif
class
ContentDirectoryService
;
class
UPnPDiscoveryListener
{
...
...
src/lib/upnp/meson.build
View file @
736a696f
upnp_dep = dependency('libupnp', required: get_option('upnp'))
upnp_dep = dependency('libupnp',
version: '>= 1.8',
required: get_option('upnp'))
conf.set('ENABLE_UPNP', upnp_dep.found())
if not upnp_dep.found()
subdir_done()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment