diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 14:31:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 14:31:00 +0200 |
commit | ef040e296e46fcc7620edaf89ffac05e065ec3e3 (patch) | |
tree | 8836cbeb47208a2f949d6f44a093f795f03f37cb /src/screen_browser.c | |
parent | 0b2eee9489a8acef3cdee6f6fa0df6d167c53b8d (diff) | |
download | mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.tar.gz mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.tar.xz mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.zip |
screen: export the global variable "screen"
screen_t is a singleton. We do not have to pass it around
everywhere. Export the one global variable.
Diffstat (limited to '')
-rw-r--r-- | src/screen_browser.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c index e68e70285..00965edb0 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -453,7 +453,7 @@ browser_handle_mouse_event(struct screen_browser *browser, mpdclient_t *c) #endif bool -browser_cmd(struct screen_browser *browser, struct screen *screen, +browser_cmd(struct screen_browser *browser, struct mpdclient *c, command_t cmd) { struct filelist_entry *entry; @@ -487,8 +487,7 @@ browser_cmd(struct screen_browser *browser, struct screen *screen, case CMD_LIST_RFIND: case CMD_LIST_FIND_NEXT: case CMD_LIST_RFIND_NEXT: - screen_find(screen, - browser->lw, filelist_length(browser->filelist), + screen_find(browser->lw, filelist_length(browser->filelist), cmd, browser_lw_callback, browser->filelist); return true; |