diff options
author | Max Kellermann <max@duempel.org> | 2008-09-16 19:11:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-16 19:11:39 +0200 |
commit | a6858acfdead6285a010a31b1fc7c8a730e91788 (patch) | |
tree | 3b698b3b2cdfedf680f5ee51f3802f82030ae23a /src/playlist.h | |
parent | eee102e5ddd2c400d707bffe21d9c6ec74507371 (diff) | |
download | mpd-a6858acfdead6285a010a31b1fc7c8a730e91788.tar.gz mpd-a6858acfdead6285a010a31b1fc7c8a730e91788.tar.xz mpd-a6858acfdead6285a010a31b1fc7c8a730e91788.zip |
mpdclient: added mpdclient_playlist_init(), mpdclient_playlist_clear()
Moved code from mpdclient_new() and mpdclient_playlist_free(). In
mpdclient_disconnect(), call mpdclient_playlist_clear() instead of
mpdclient_playlist_free() (which is now called in mpdclient_free()).
Diffstat (limited to 'src/playlist.h')
-rw-r--r-- | src/playlist.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h index 2d2a353a6..946ca631c 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -39,6 +39,13 @@ typedef struct mpdclient_playlist { GArray *list; } mpdclient_playlist_t; +void +playlist_init(struct mpdclient_playlist *playlist); + +/** remove and free all songs in the playlist */ +void +playlist_clear(struct mpdclient_playlist *playlist); + /* free a playlist */ gint mpdclient_playlist_free(mpdclient_playlist_t *playlist); |