aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongSave.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/SongSave.hxx')
-rw-r--r--src/SongSave.hxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/SongSave.hxx b/src/SongSave.hxx
index 40fb4abf7..28c217249 100644
--- a/src/SongSave.hxx
+++ b/src/SongSave.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -20,17 +20,20 @@
#ifndef MPD_SONG_SAVE_HXX
#define MPD_SONG_SAVE_HXX
-#include <stdio.h>
-
#define SONG_BEGIN "song_begin: "
struct Song;
struct Directory;
+class DetachedSong;
+class BufferedOutputStream;
class TextFile;
class Error;
void
-song_save(FILE *fp, const Song &song);
+song_save(BufferedOutputStream &os, const Song &song);
+
+void
+song_save(BufferedOutputStream &os, const DetachedSong &song);
/**
* Loads a song from the input file. Reading stops after the
@@ -39,8 +42,8 @@ song_save(FILE *fp, const Song &song);
* @param error location to store the error occurring
* @return true on success, false on error
*/
-Song *
-song_load(TextFile &file, Directory *parent, const char *uri,
+DetachedSong *
+song_load(TextFile &file, const char *uri,
Error &error);
#endif