MPD: SongSave.hxx File Reference

MPD 0.20.15

Macros | Functions
SongSave.hxx File Reference

Go to the source code of this file.

## Macros
#define | SONG_BEGIN "song_begin: "

## Functions
void | song_save (BufferedOutputStream &os, const Song &song)
void | song_save (BufferedOutputStream &os, const DetachedSong &song)
DetachedSong * | song_load (TextFile &file, const char *uri)
| Loads a song from the input file. More...

## Macro Definition Documentation

## ◆ SONG_BEGIN

#define SONG_BEGIN "song_begin: "

Definition at line 23 of file SongSave.hxx.

## Function Documentation

## ◆ song_load()

DetachedSong* song_load | ( | TextFile & | file,
|  | const char * | uri
| ) |  |

Loads a song from the input file.

Reading stops after the "song_end" line.

Throws #std::runtime_error on error.

## ◆ song_save() [1/2]

void song_save | ( | BufferedOutputStream & | os,
|  | const Song & | song
| ) |  |

## ◆ song_save() [2/2]

void song_save | ( | BufferedOutputStream & | os,
|  | const DetachedSong & | song
| ) |  |