TextFile: convert to a class

This commit is contained in:
Max Kellermann
2013-01-03 10:16:05 +01:00
parent 2452447c81
commit 90fe4c5124
17 changed files with 97 additions and 98 deletions

View File

@@ -28,6 +28,7 @@
struct song;
struct Directory;
class TextFile;
void
song_save(FILE *fp, const struct song *song);
@@ -41,7 +42,7 @@ song_save(FILE *fp, const struct song *song);
* @return true on success, false on error
*/
struct song *
song_load(FILE *fp, Directory *parent, const char *uri,
GString *buffer, GError **error_r);
song_load(TextFile &file, Directory *parent, const char *uri,
GError **error_r);
#endif