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
58fb36bd
Commit
58fb36bd
authored
Jan 03, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage/http: new storage plugin
parent
4297a7b0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
74 additions
and
0 deletions
+74
-0
Makefile.am
Makefile.am
+12
-0
NEWS
NEWS
+2
-0
configure.ac
configure.ac
+13
-0
user.xml
doc/user.xml
+12
-0
Global.hxx
src/lib/curl/Global.hxx
+2
-0
Registry.cxx
src/storage/Registry.cxx
+4
-0
CurlStorage.cxx
src/storage/plugins/CurlStorage.cxx
+0
-0
CurlStorage.hxx
src/storage/plugins/CurlStorage.hxx
+29
-0
No files found.
Makefile.am
View file @
58fb36bd
...
...
@@ -699,6 +699,8 @@ libstorage_a_CPPFLAGS = $(AM_CPPFLAGS) \
STORAGE_LIBS
=
\
libstorage.a
\
$(CURL_LIBS)
\
$(EXPAT_LIBS)
\
$(NFS_LIBS)
\
$(SMBCLIENT_LIBS)
...
...
@@ -714,6 +716,12 @@ libstorage_a_SOURCES += \
src/storage/plugins/NfsStorage.cxx src/storage/plugins/NfsStorage.hxx
endif
if
ENABLE_WEBDAV
libstorage_a_SOURCES
+=
\
src/lib/expat/ExpatParser.cxx
\
src/storage/plugins/CurlStorage.cxx src/storage/plugins/CurlStorage.hxx
endif
endif
# neighbor plugins
...
...
@@ -1768,6 +1776,10 @@ test_run_storage_SOURCES = \
test
/ScopeIOThread.hxx
\
test
/run_storage.cxx
if
ENABLE_WEBDAV
test_run_storage_SOURCES
+=
$(CURL_SOURCES)
endif
endif
test_run_input_LDADD
=
\
...
...
NEWS
View file @
58fb36bd
ver 0.20.1 (not yet released)
* input
- curl: fix crash bug
* storage
- curl: new storage plugin for WebDAV (work in progress)
* mixer
- alsa: normalize displayed volume according to human perception
* fix crash with volume_normalization enabled
...
...
configure.ac
View file @
58fb36bd
...
...
@@ -721,6 +721,19 @@ MPD_ENABLE_AUTO_PKG(mms, MMS, [libmms >= 0.4],
[libmms mms:// protocol support], [libmms not found])
dnl ---------------------------------------------------------------------------
dnl Storage Plugins
dnl ---------------------------------------------------------------------------
MPD_ENABLE_AUTO(webdav, WEBDAV, [WebDAV storage plugin],
[WebDAV requires libcurl and libexpat],
[auto],
[if test x$enable_curl = xyes && test x$enable_expat = xyes; then
found_webdav=yes
else
found_webdav=no
fi])
dnl ---------------------------------------------------------------------------
dnl Playlist Plugins
dnl ---------------------------------------------------------------------------
...
...
doc/user.xml
View file @
58fb36bd
...
...
@@ -1868,6 +1868,18 @@ run</programlisting>
</para>
</section>
<section
id=
"curl_storage"
>
<title><varname>
curl
</varname></title>
<para>
A WebDAV client using
<filename>
libcurl
</filename>
. It used
used when
<varname>
music_directory
</varname>
contains a
<parameter>
http://
</parameter>
or
<parameter>
https://
</parameter>
URI, for example
"
<parameter>
https://the.server/dav/
</parameter>
".
</para>
</section>
<section
id=
"smbclient_storage"
>
<title><varname>
smbclient
</varname></title>
...
...
src/lib/curl/Global.hxx
View file @
58fb36bd
...
...
@@ -46,6 +46,8 @@ class CurlGlobal final : TimeoutMonitor, DeferredMonitor {
public
:
explicit
CurlGlobal
(
EventLoop
&
_loop
);
using
TimeoutMonitor
::
GetEventLoop
;
void
Add
(
CURL
*
easy
,
CurlRequest
&
request
);
void
Remove
(
CURL
*
easy
);
...
...
src/storage/Registry.cxx
View file @
58fb36bd
...
...
@@ -23,6 +23,7 @@
#include "plugins/LocalStorage.hxx"
#include "plugins/SmbclientStorage.hxx"
#include "plugins/NfsStorage.hxx"
#include "plugins/CurlStorage.hxx"
#include <assert.h>
#include <string.h>
...
...
@@ -35,6 +36,9 @@ const StoragePlugin *const storage_plugins[] = {
#ifdef ENABLE_NFS
&
nfs_storage_plugin
,
#endif
#ifdef ENABLE_WEBDAV
&
curl_storage_plugin
,
#endif
nullptr
};
...
...
src/storage/plugins/CurlStorage.cxx
0 → 100644
View file @
58fb36bd
This diff is collapsed.
Click to expand it.
src/storage/plugins/CurlStorage.hxx
0 → 100644
View file @
58fb36bd
/*
* Copyright 2003-2016 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_STORAGE_CURL_HXX
#define MPD_STORAGE_CURL_HXX
#include "check.h"
struct
StoragePlugin
;
extern
const
StoragePlugin
curl_storage_plugin
;
#endif
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