summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0babcc4)
raw | patch | inline | side by side (parent: 0babcc4)
author | Max Kellermann <max@duempel.org> | |
Thu, 1 Oct 2009 21:45:51 +0000 (23:45 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 1 Oct 2009 21:45:51 +0000 (23:45 +0200) |
Prefix must be "screen_playlist_".
src/screen_play.c | patch | blob | history |
diff --git a/src/screen_play.c b/src/screen_play.c
index 79479bb032e8bf59328fd647882920f57d3159a6..4503c37b062efac3bb23e7b3c012c199784ba60c 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
static guint timer_hide_cursor_id;
static void
-play_paint(void);
+screen_playlist_paint(void);
static void
playlist_repaint(void)
{
- play_paint();
+ screen_playlist_paint();
wrefresh(lw->w);
}
}
static void
-play_init(WINDOW *w, int cols, int rows)
+screen_playlist_init(WINDOW *w, int cols, int rows)
{
lw = list_window_init(w, cols, rows);
}
}
static void
-play_open(struct mpdclient *c)
+screen_playlist_open(struct mpdclient *c)
{
playlist = &c->playlist;
}
static void
-play_close(void)
+screen_playlist_close(void)
{
if (timer_hide_cursor_id != 0) {
g_source_remove(timer_hide_cursor_id);
}
static void
-play_resize(int cols, int rows)
+screen_playlist_resize(int cols, int rows)
{
lw->cols = cols;
lw->rows = rows;
static void
-play_exit(void)
+screen_playlist_exit(void)
{
list_window_free(lw);
}
static const char *
-play_title(char *str, size_t size)
+screen_playlist_title(char *str, size_t size)
{
if (options.host == NULL)
return _("Playlist");
}
static void
-play_paint(void)
+screen_playlist_paint(void)
{
#ifndef NCMPC_MINI
must_scroll = false;
}
static void
-play_update(struct mpdclient *c)
+screen_playlist_update(struct mpdclient *c)
{
static int prev_song_id = -1;
#endif
static bool
-play_cmd(struct mpdclient *c, command_t cmd)
+screen_playlist_cmd(struct mpdclient *c, command_t cmd)
{
static command_t cached_cmd = CMD_NONE;
command_t prev_cmd = cached_cmd;
}
const struct screen_functions screen_playlist = {
- .init = play_init,
- .exit = play_exit,
- .open = play_open,
- .close = play_close,
- .resize = play_resize,
- .paint = play_paint,
- .update = play_update,
- .cmd = play_cmd,
- .get_title = play_title,
+ .init = screen_playlist_init,
+ .exit = screen_playlist_exit,
+ .open = screen_playlist_open,
+ .close = screen_playlist_close,
+ .resize = screen_playlist_resize,
+ .paint = screen_playlist_paint,
+ .update = screen_playlist_update,
+ .cmd = screen_playlist_cmd,
+ .get_title = screen_playlist_title,
};