aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistDatabase.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 10:16:05 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 10:16:05 +0100
commit90fe4c5124e3fd335f05804d3cc47ba996e62b14 (patch)
treeef7fb6b3cb2edbe4898431db611f04fb281129fc /src/PlaylistDatabase.cxx
parent2452447c814048ed72e95a459c76b4be65962b5c (diff)
downloadmpd-90fe4c5124e3fd335f05804d3cc47ba996e62b14.tar.gz
mpd-90fe4c5124e3fd335f05804d3cc47ba996e62b14.tar.xz
mpd-90fe4c5124e3fd335f05804d3cc47ba996e62b14.zip
TextFile: convert to a class
Diffstat (limited to '')
-rw-r--r--src/PlaylistDatabase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistDatabase.cxx b/src/PlaylistDatabase.cxx
index 984af4adc..edc6a2815 100644
--- a/src/PlaylistDatabase.cxx
+++ b/src/PlaylistDatabase.cxx
@@ -46,15 +46,15 @@ playlist_vector_save(FILE *fp, const PlaylistVector &pv)
}
bool
-playlist_metadata_load(FILE *fp, PlaylistVector &pv, const char *name,
- GString *buffer, GError **error_r)
+playlist_metadata_load(TextFile &file, PlaylistVector &pv, const char *name,
+ GError **error_r)
{
PlaylistInfo pm(name, 0);
char *line, *colon;
const char *value;
- while ((line = read_text_line(fp, buffer)) != NULL &&
+ while ((line = file.ReadLine()) != NULL &&
strcmp(line, "playlist_end") != 0) {
colon = strchr(line, ':');
if (colon == NULL || colon == line) {