summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28a463b)
raw | patch | inline | side by side (parent: 28a463b)
author | Max Kellermann <max@duempel.org> | |
Fri, 19 Sep 2008 14:22:44 +0000 (16:22 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 19 Sep 2008 14:22:44 +0000 (16:22 +0200) |
The separate filelist library does not depend on mpdclient, so the
prefix is superfluous.
prefix is superfluous.
diff --git a/src/filelist.c b/src/filelist.c
index 7b45416062038f778f765bc1a6f17923860f21e1..55b4cfabf07e9f8f1a1cb0ab8e1c055845940962 100644 (file)
--- a/src/filelist.c
+++ b/src/filelist.c
#include <assert.h>
void
-mpdclient_filelist_free(struct filelist *filelist)
+filelist_free(struct filelist *filelist)
{
GList *list = g_list_first(filelist->list);
}
struct filelist_entry *
-mpdclient_filelist_find_song(struct filelist *fl,
- const struct mpd_song *song)
+filelist_find_song(struct filelist *fl, const struct mpd_song *song)
{
GList *list = g_list_first(fl->list);
diff --git a/src/filelist.h b/src/filelist.h
index 81ff5a37c0547408b0041a98202b23c0bac74688..3b33eb44960fd75eb29fb6caf4d6222d0daf91c1 100644 (file)
--- a/src/filelist.h
+++ b/src/filelist.h
} mpdclient_filelist_t;
void
-mpdclient_filelist_free(struct filelist *filelist);
+filelist_free(struct filelist *filelist);
struct filelist_entry *
-mpdclient_filelist_find_song(struct filelist *flist,
- const struct mpd_song *song);
+filelist_find_song(struct filelist *flist, const struct mpd_song *song);
#endif
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 2f5591f609154b2c1446f7e852af1b9f6ec15f2c..5a630fb2bd2a3b67c3033b00b3df0a69467c3ac1 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
}
if (mpdclient_finish_command(c)) {
- mpdclient_filelist_free(filelist);
+ filelist_free(filelist);
return NULL;
}
{
gchar *path = g_strdup(filelist->path);
- mpdclient_filelist_free(filelist);
+ filelist_free(filelist);
filelist = mpdclient_filelist_get(c, path);
g_free(path);
return filelist;
diff --git a/src/screen_artist.c b/src/screen_artist.c
index c5d5a268b11b42d0dde51e0e5114f0a70c87fce1..61f05cc51d26f2a85eec56a8f352688888065b73 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
metalist = string_list_free(metalist);
if (browser.filelist) {
mpdclient_remove_playlist_callback(c, playlist_changed_callback);
- mpdclient_filelist_free(browser.filelist);
+ filelist_free(browser.filelist);
browser.filelist = NULL;
}
quit(void)
{
if (browser.filelist)
- mpdclient_filelist_free(browser.filelist);
+ filelist_free(browser.filelist);
if (metalist)
string_list_free(metalist);
g_free(artist);
addlist = mpdclient_filelist_search_utf8(c, TRUE, table, _filter);
if (addlist) {
mpdclient_filelist_add_all(c, addlist);
- mpdclient_filelist_free(addlist);
+ filelist_free(addlist);
}
}
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 828cbe21ca6c2749ffda7b909aeda3002e38d6ca..47fda6abe4da7c88bfe14117ae31ba283a56064f 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
static void
set_highlight(mpdclient_filelist_t *fl, mpd_Song *song, int highlight)
{
- struct filelist_entry *entry = mpdclient_filelist_find_song(fl, song);
+ struct filelist_entry *entry = filelist_find_song(fl, song);
mpd_InfoEntity *entity;
if (entry == NULL)
} else
return -1;
- mpdclient_filelist_free(browser->filelist);
+ filelist_free(browser->filelist);
browser->filelist = mpdclient_filelist_get(c, path);
sync_highlights(c, browser->filelist);
list_window_check_selected(browser->lw, browser->filelist->length);
diff --git a/src/screen_file.c b/src/screen_file.c
index ea20f950695677780bfd1c6dc8f95e2e80e40803..3df1a3fdc4cfd62b2fd5dfdccea7bdbb7cf9e9ce 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
browse_exit(void)
{
if (browser.filelist)
- mpdclient_filelist_free(browser.filelist);
+ filelist_free(browser.filelist);
list_window_free(browser.lw);
list_window_free_state(browser.lw_state);
}
diff --git a/src/screen_search.c b/src/screen_search.c
index 549221e74bbf7f8ef815b33039f7bc439e105537..822729ad43c7fd961eb6667948ec2c70fd96f4ba 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
{
if (browser.filelist) {
mpdclient_remove_playlist_callback(c, playlist_changed_callback);
- mpdclient_filelist_free(browser.filelist);
+ filelist_free(browser.filelist);
browser.filelist = NULL;
}
if (clear_pattern && pattern) {
}
if (mpdclient_finish_command(c) && fl)
- mpdclient_filelist_free(fl);
+ filelist_free(fl);
fl->updated = TRUE;
}
if (search_history)
string_list_free(search_history);
if (browser.filelist)
- mpdclient_filelist_free(browser.filelist);
+ filelist_free(browser.filelist);
list_window_free(browser.lw);
if (pattern) {
diff --git a/src/utils.c b/src/utils.c
index 9241296f69704eb09805a27b90f09629eadb33b0..65eaceca2191f4a0a6dc37dcf957e499124b8196 100644 (file)
--- a/src/utils.c
+++ b/src/utils.c
flist = flist->next;
}
- mpdclient_filelist_free(filelist);
+ filelist_free(filelist);
return list;
}