*Save, *State: use the OutputStream API instead of FILE*

This commit is contained in:
Max Kellermann
2014-07-30 20:58:14 +02:00
parent 0d0ccacdf3
commit 9fb351a139
23 changed files with 169 additions and 133 deletions

View File

@@ -20,21 +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(FILE *fp, const DetachedSong &song);
song_save(BufferedOutputStream &os, const DetachedSong &song);
/**
* Loads a song from the input file. Reading stops after the