aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_browser.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-02 15:30:47 +0200
committerMax Kellermann <max@duempel.org>2008-10-02 15:30:47 +0200
commit9526f180e6f55654c99bd8d66c71612a32b0fb4e (patch)
tree68bee0ee631baec7012bef3705f4154d6fb674ff /src/screen_browser.c
parentb1a8ff5269e42088b1530ccacb52a55b60754578 (diff)
downloadmpd-9526f180e6f55654c99bd8d66c71612a32b0fb4e.tar.gz
mpd-9526f180e6f55654c99bd8d66c71612a32b0fb4e.tar.xz
mpd-9526f180e6f55654c99bd8d66c71612a32b0fb4e.zip
screen_browser: unexport command implementations
When we created created browser_cmd(), several functions of the screen_browser API weren't used by other sources anymore. We can now unexport them.
Diffstat (limited to '')
-rw-r--r--src/screen_browser.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 694987fae..b8a1b1ee1 100644
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
@@ -255,7 +255,7 @@ browser_get_selected(const struct screen_browser *browser)
return filelist_get(browser->filelist, browser->lw->selected);
}
-int
+static int
browser_handle_enter(struct screen_browser *browser, mpdclient_t *c)
{
struct filelist_entry *entry = browser_get_selected(browser);
@@ -380,7 +380,7 @@ browser_select_entry(mpdclient_t *c, filelist_entry_t *entry,
return 0;
}
-int
+static int
browser_handle_select(struct screen_browser *browser, mpdclient_t *c)
{
struct filelist_entry *entry = browser_get_selected(browser);
@@ -391,7 +391,7 @@ browser_handle_select(struct screen_browser *browser, mpdclient_t *c)
return browser_select_entry(c, entry, TRUE);
}
-int
+static int
browser_handle_add(struct screen_browser *browser, mpdclient_t *c)
{
struct filelist_entry *entry = browser_get_selected(browser);
@@ -402,7 +402,7 @@ browser_handle_add(struct screen_browser *browser, mpdclient_t *c)
return browser_select_entry(c, entry, FALSE);
}
-void
+static void
browser_handle_select_all(struct screen_browser *browser, mpdclient_t *c)
{
guint i;
@@ -419,7 +419,7 @@ browser_handle_select_all(struct screen_browser *browser, mpdclient_t *c)
}
#ifdef HAVE_GETMOUSE
-int
+static int
browser_handle_mouse_event(struct screen_browser *browser, mpdclient_t *c)
{
int row;
@@ -492,9 +492,11 @@ browser_cmd(struct screen_browser *browser, struct screen *screen,
browser->filelist);
return true;
+#ifdef HAVE_GETMOUSE
case CMD_MOUSE_EVENT:
browser_handle_mouse_event(browser, c);
return true;
+#endif
#ifdef ENABLE_LYRICS_SCREEN
case CMD_SCREEN_LYRICS: