PlaylistFile: reuse classes PlaylistInfo and PlaylistVector

.. instead of rolling own classes.
This commit is contained in:
Max Kellermann
2013-01-04 00:02:09 +01:00
parent 06be0a1997
commit 9d312ab208
6 changed files with 15 additions and 16 deletions

View File

@@ -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