2010-06-25 21:45:04 +02:00
|
|
|
/*
|
2017-01-03 20:48:59 +01:00
|
|
|
* Copyright 2003-2017 The Music Player Daemon Project
|
2010-06-25 21:45:04 +02:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2013-01-02 18:38:32 +01:00
|
|
|
#ifndef MPD_PLAYLIST_ANY_HXX
|
|
|
|
#define MPD_PLAYLIST_ANY_HXX
|
2010-06-25 21:45:04 +02:00
|
|
|
|
2018-01-20 19:56:44 +01:00
|
|
|
#include <memory>
|
|
|
|
|
2013-10-17 10:06:31 +02:00
|
|
|
class Mutex;
|
2013-09-05 09:37:54 +02:00
|
|
|
class SongEnumerator;
|
2014-02-07 20:22:26 +01:00
|
|
|
class Storage;
|
2010-06-25 21:45:04 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Opens a playlist from the specified URI, which can be either an
|
|
|
|
* absolute remote URI (with a scheme) or a relative path to the
|
2016-04-13 19:23:14 +02:00
|
|
|
* music or playlist directory.
|
2010-06-25 21:45:04 +02:00
|
|
|
*/
|
2018-01-20 19:56:44 +01:00
|
|
|
std::unique_ptr<SongEnumerator>
|
2014-02-07 20:22:26 +01:00
|
|
|
playlist_open_any(const char *uri,
|
|
|
|
#ifdef ENABLE_DATABASE
|
|
|
|
const Storage *storage,
|
|
|
|
#endif
|
2018-06-22 19:37:18 +02:00
|
|
|
Mutex &mutex);
|
2010-06-25 21:45:04 +02:00
|
|
|
|
|
|
|
#endif
|