aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 00:02:09 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 00:02:09 +0100
commit9d312ab208f797a69c8366f4a961d6cb3228cecb (patch)
treedb4f22c858684ab16f0a8010207b9fbf46119985 /src/PlaylistFile.hxx
parent06be0a199722e945701d720fe40068c6de6c8f40 (diff)
downloadmpd-9d312ab208f797a69c8366f4a961d6cb3228cecb.tar.gz
mpd-9d312ab208f797a69c8366f4a961d6cb3228cecb.tar.xz
mpd-9d312ab208f797a69c8366f4a961d6cb3228cecb.zip
PlaylistFile: reuse classes PlaylistInfo and PlaylistVector
.. instead of rolling own classes.
Diffstat (limited to 'src/PlaylistFile.hxx')
-rw-r--r--src/PlaylistFile.hxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/PlaylistFile.hxx b/src/PlaylistFile.hxx
index 6df5a46d3..3f63253ad 100644
--- a/src/PlaylistFile.hxx
+++ b/src/PlaylistFile.hxx
@@ -20,7 +20,6 @@
#ifndef MPD_PLAYLIST_FILE_HXX
#define MPD_PLAYLIST_FILE_HXX
-#include <list>
#include <vector>
#include <string>
@@ -28,14 +27,8 @@
#include <time.h>
struct song;
-
-struct PlaylistFileInfo {
- std::string name;
-
- time_t mtime;
-};
-
-typedef std::list<PlaylistFileInfo> PlaylistFileList;
+struct PlaylistInfo;
+class PlaylistVector;
typedef std::vector<std::string> PlaylistFileContents;
@@ -60,7 +53,7 @@ spl_valid_name(const char *name_utf8);
* Returns a list of stored_playlist_info struct pointers. Returns
* NULL if an error occurred.
*/
-PlaylistFileList
+PlaylistVector
ListPlaylistFiles(GError **error_r);
PlaylistFileContents