summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 43a08b6)
raw | patch | inline | side by side (parent: 43a08b6)
author | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 17:19:46 +0000 (19:19 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 17:19:46 +0000 (19:19 +0200) |
Not used anymore.
src/mpdclient.c | patch | blob | history | |
src/mpdclient.h | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index d8557159ffb7e9fa667285e4a1a964ffd7cf58d2..1abc529a018e1024d62be5381d821322ffaae8e4 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
/*** Filelist functions *****************************************************/
/****************************************************************************/
-static struct filelist *
-mpdclient_recv_filelist_response(struct mpdclient *c);
-
-struct filelist *
-mpdclient_filelist_get(struct mpdclient *c, const gchar *path)
-{
- struct filelist *filelist;
-
- if (MPD_ERROR(c))
- return NULL;
-
- mpd_send_list_meta(c->connection, path);
- filelist = mpdclient_recv_filelist_response(c);
- if (filelist == NULL)
- return NULL;
-
- filelist_sort_dir_play(filelist, compare_filelist_entry_path);
-
- return filelist;
-}
-
-static struct filelist *
-mpdclient_recv_filelist_response(struct mpdclient *c)
-{
- struct filelist *filelist;
-
- filelist = filelist_new_recv(c->connection);
-
- if (!mpdclient_finish_command(c)) {
- filelist_free(filelist);
- return NULL;
- }
-
- return filelist;
-}
-
bool
mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl)
{
diff --git a/src/mpdclient.h b/src/mpdclient.h
index 4b1b361083a89aec2801d77082d33968518b4446..789ccb42ca3d2e6613967356f01b4612ac0eb8d9 100644 (file)
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
bool
mpdclient_playlist_update_changes(struct mpdclient *c);
-
-/*** filelist functions ***************************************************/
-
-struct filelist *
-mpdclient_filelist_get(struct mpdclient *c, const gchar *path);
-
/* add all songs in filelist to the playlist */
bool
mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl);