aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_state.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-25 11:01:05 +0200
committerMax Kellermann <max@duempel.org>2010-07-25 12:01:59 +0200
commit838790fc2d12bb763341cebe7700bd21231e2105 (patch)
tree653ea0164f394eaa7ceab51448b5725fca46d664 /src/playlist_state.h
parent1ff2d5b689a66671c9dc62f297d69f00cbea9a6e (diff)
downloadmpd-838790fc2d12bb763341cebe7700bd21231e2105.tar.gz
mpd-838790fc2d12bb763341cebe7700bd21231e2105.tar.xz
mpd-838790fc2d12bb763341cebe7700bd21231e2105.zip
state_file: use the text_file library
Don't use a large stack buffer.
Diffstat (limited to 'src/playlist_state.h')
-rw-r--r--src/playlist_state.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/playlist_state.h b/src/playlist_state.h
index 57a4c2e38..8ca3657f2 100644
--- a/src/playlist_state.h
+++ b/src/playlist_state.h
@@ -25,6 +25,7 @@
#ifndef PLAYLIST_STATE_H
#define PLAYLIST_STATE_H
+#include <glib.h>
#include <stdbool.h>
#include <stdio.h>
@@ -34,7 +35,8 @@ void
playlist_state_save(FILE *fp, const struct playlist *playlist);
bool
-playlist_state_restore(const char *line, FILE *fp, struct playlist *playlist);
+playlist_state_restore(const char *line, FILE *fp, GString *buffer,
+ struct playlist *playlist);
/**
* Generates a hash number for the current state of the playlist and