SongSave: wrap DetachedSong* in std::unique_ptr

This commit is contained in:
Max Kellermann
2017-11-26 12:18:31 +01:00
parent 28fdf1e9ed
commit 75582d47b9
4 changed files with 9 additions and 15 deletions

View File

@@ -20,6 +20,8 @@
#ifndef MPD_SONG_SAVE_HXX
#define MPD_SONG_SAVE_HXX
#include <memory>
#define SONG_BEGIN "song_begin: "
struct Song;
@@ -39,7 +41,7 @@ song_save(BufferedOutputStream &os, const DetachedSong &song);
*
* Throws #std::runtime_error on error.
*/
DetachedSong *
std::unique_ptr<DetachedSong>
song_load(TextFile &file, const char *uri);
#endif