mpd/src/SongSave.hxx

34 lines
671 B
C++
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
2013-01-02 19:52:57 +01:00
#ifndef MPD_SONG_SAVE_HXX
#define MPD_SONG_SAVE_HXX
#include <memory>
#define SONG_BEGIN "song_begin: "
2013-07-28 13:25:12 +02:00
struct Song;
struct AudioFormat;
class DetachedSong;
class BufferedOutputStream;
class LineReader;
void
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
* "song_end" line.
*
2019-09-05 20:49:42 +02:00
* Throws on error.
*/
DetachedSong
song_load(LineReader &file, const char *uri,
std::string *target_r=nullptr, bool *in_playlist_r=nullptr);
#endif