diff --git a/src/screen_interface.h b/src/screen_interface.h
index a853185c0fab11fd6ed3564388bfe4d6859a2e70..a5b29b90318ac2b8f6f9daa16bbddd3ea8eac70b 100644 (file)
--- a/src/screen_interface.h
+++ b/src/screen_interface.h
#include "config.h"
#include "command.h"
+#include "ncmpc_curses.h"
#include <stdbool.h>
#include <stddef.h>
-#ifdef HAVE_NCURSESW_NCURSES_H
-#include <ncursesw/ncurses.h>
-#else
-#include <ncurses.h>
-#endif
-
struct mpdclient;
struct screen_functions {
void (*resize)(int cols, int rows);
void (*paint)(void);
void (*update)(struct mpdclient *c);
+
+ /**
+ * Handle a command.
+ *
+ * @returns true if the command should not be handled by the ncmpc core.
+ */
bool (*cmd)(struct mpdclient *c, command_t cmd);
+
const char *(*get_title)(char *s, size_t size);
};