summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b1a8ff5)
raw | patch | inline | side by side (parent: b1a8ff5)
author | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 13:30:47 +0000 (15:30 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 13:30:47 +0000 (15:30 +0200) |
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.
screen_browser API weren't used by other sources anymore. We can now
unexport them.
src/screen_browser.c | patch | blob | history | |
src/screen_browser.h | patch | blob | history |
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 694987fae926d88914245862018aee327a25f654..b8a1b1ee1e552d908135f917a74480d170c5bbff 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
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);
return 0;
}
-int
+static int
browser_handle_select(struct screen_browser *browser, mpdclient_t *c)
{
struct filelist_entry *entry = browser_get_selected(browser);
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);
return browser_select_entry(c, entry, FALSE);
}
-void
+static void
browser_handle_select_all(struct screen_browser *browser, mpdclient_t *c)
{
guint i;
}
#ifdef HAVE_GETMOUSE
-int
+static int
browser_handle_mouse_event(struct screen_browser *browser, mpdclient_t *c)
{
int row;
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:
diff --git a/src/screen_browser.h b/src/screen_browser.h
index eb1133610b4a8b794d8f08e948c5d065cf07ef4e..2b825c03a0e9985dedfc0dd2bc72ac78173880ac 100644 (file)
--- a/src/screen_browser.h
+++ b/src/screen_browser.h
const char *browser_lw_callback(unsigned index, int *highlight, void *filelist);
-int
-browser_handle_select(struct screen_browser *browser, mpdclient_t *c);
-
-int
-browser_handle_add(struct screen_browser *browser, mpdclient_t *c);
-
-void
-browser_handle_select_all(struct screen_browser *browser, mpdclient_t *c);
-
int
browser_change_directory(struct screen_browser *browser, mpdclient_t *c,
filelist_entry_t *entry, const char *new_path);
-int
-browser_handle_enter(struct screen_browser *browser, mpdclient_t *c);
-
-#ifdef HAVE_GETMOUSE
-int browser_handle_mouse_event(struct screen_browser *browser, mpdclient_t *c);
-#else
-#define browser_handle_mouse_event(browser, c) (0)
-#endif
-
bool
browser_cmd(struct screen_browser *browser, struct screen *screen,
struct mpdclient *c, command_t cmd);