lib/upnp/Discovery: use CURL instead of UpnpDownloadUrlItem()
We can do CURL requests asynchronously, and we don't need a synchronous WorkQueue thread for that. This allows parallelizing lookups and allows immediate cancellation.
This commit is contained in:
+6
-2
@@ -254,7 +254,6 @@ UPNP_SOURCES = \
|
||||
src/lib/upnp/Callback.hxx \
|
||||
src/lib/upnp/Util.cxx src/lib/upnp/Util.hxx \
|
||||
src/lib/upnp/UniqueIxml.hxx \
|
||||
src/lib/upnp/WorkQueue.hxx \
|
||||
src/lib/upnp/Action.hxx
|
||||
|
||||
ALSA_SOURCES = \
|
||||
@@ -1784,9 +1783,14 @@ test_DumpDatabase_SOURCES = test/DumpDatabase.cxx \
|
||||
src/DetachedSong.cxx \
|
||||
src/TagSave.cxx \
|
||||
src/SongFilter.cxx
|
||||
test_DumpDatabase_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
if ENABLE_UPNP
|
||||
test_DumpDatabase_SOURCES += src/lib/expat/ExpatParser.cxx
|
||||
test_DumpDatabase_SOURCES += \
|
||||
$(CURL_SOURCES) \
|
||||
src/lib/expat/ExpatParser.cxx
|
||||
test_DumpDatabase_CPPFLAGS += $(CURL_CFLAGS)
|
||||
test_DumpDatabase_LDADD += $(CURL_LIBS)
|
||||
endif
|
||||
|
||||
test_run_storage_LDADD = \
|
||||
|
||||
Reference in New Issue
Block a user