aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistVector.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 22:04:03 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 22:16:05 +0100
commit8331de424a67b137cd83ce817da0fceec647dc2f (patch)
treeb5243fbff385d9732c683cb1efc64eec85f3189f /src/PlaylistVector.hxx
parent98dbdf72b3c35878494df4954a447cec250a835d (diff)
downloadmpd-8331de424a67b137cd83ce817da0fceec647dc2f.tar.gz
mpd-8331de424a67b137cd83ce817da0fceec647dc2f.tar.xz
mpd-8331de424a67b137cd83ce817da0fceec647dc2f.zip
PlaylistInfo: rename class, use std::string
Diffstat (limited to '')
-rw-r--r--src/PlaylistVector.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/PlaylistVector.hxx b/src/PlaylistVector.hxx
index 30418131a..14445315c 100644
--- a/src/PlaylistVector.hxx
+++ b/src/PlaylistVector.hxx
@@ -37,15 +37,14 @@ playlist_vector_deinit(struct list_head *pv);
/**
* Caller must lock the #db_mutex.
*/
-struct playlist_metadata *
+PlaylistInfo *
playlist_vector_find(struct list_head *pv, const char *name);
/**
* Caller must lock the #db_mutex.
*/
void
-playlist_vector_add(struct list_head *pv,
- const char *name, time_t mtime);
+playlist_vector_add(struct list_head *pv, PlaylistInfo &&pi);
/**
* Caller must lock the #db_mutex.
@@ -53,8 +52,7 @@ playlist_vector_add(struct list_head *pv,
* @return true if the vector or one of its items was modified
*/
bool
-playlist_vector_update_or_add(struct list_head *pv,
- const char *name, time_t mtime);
+playlist_vector_update_or_add(struct list_head *pv, PlaylistInfo &&pi);
/**
* Caller must lock the #db_mutex.