summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d1ddb15)
raw | patch | inline | side by side (parent: d1ddb15)
author | Max Kellermann <max@duempel.org> | |
Wed, 30 Sep 2009 18:50:12 +0000 (20:50 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Wed, 30 Sep 2009 18:50:12 +0000 (20:50 +0200) |
Use the "screen_search_" prefix.
src/screen_search.c | patch | blob | history |
diff --git a/src/screen_search.c b/src/screen_search.c
index 6dbbb1e0851574e56e1e907e5ec6450d8e16e6ee..3e533b624112090bb2e66447c098d048779b7e63 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
}
static void
-paint(void);
+screen_search_paint(void);
static void
search_repaint(void)
{
- paint();
+ screen_search_paint();
wrefresh(browser.lw->w);
}
list_window_check_selected(browser.lw, filelist_length(browser.filelist));
}
-
-
static void
-init(WINDOW *w, int cols, int rows)
+screen_search_init(WINDOW *w, int cols, int rows)
{
browser.lw = list_window_init(w, cols, rows);
}
static void
-quit(void)
+screen_search_quit(void)
{
if (search_history)
string_list_free(search_history);
}
static void
-open(G_GNUC_UNUSED struct mpdclient *c)
+screen_search_open(G_GNUC_UNUSED struct mpdclient *c)
{
// if( pattern==NULL )
// search_new(screen, c);
}
static void
-resize(int cols, int rows)
+screen_search_resize(int cols, int rows)
{
browser.lw->cols = cols;
browser.lw->rows = rows;
}
static void
-paint(void)
+screen_search_paint(void)
{
if (browser.filelist) {
browser.lw->hide_cursor = false;
}
static const char *
-get_title(char *str, size_t size)
+screen_search_get_title(char *str, size_t size)
{
if (advanced_search_mode && pattern)
g_snprintf(str, size, _("Search: %s"), pattern);
}
static bool
-search_cmd(struct mpdclient *c, command_t cmd)
+screen_search_cmd(struct mpdclient *c, command_t cmd)
{
switch (cmd) {
case CMD_SEARCH_MODE:
}
const struct screen_functions screen_search = {
- .init = init,
- .exit = quit,
- .open = open,
- .resize = resize,
- .paint = paint,
+ .init = screen_search_init,
+ .exit = screen_search_quit,
+ .open = screen_search_open,
+ .resize = screen_search_resize,
+ .paint = screen_search_paint,
.update = screen_search_update,
- .cmd = search_cmd,
- .get_title = get_title,
+ .cmd = screen_search_cmd,
+ .get_title = screen_search_get_title,
};