Code

command.c: put curly braces around a single large statement
[ncmpc.git] / src / screen_interface.h
index a91c4d6cbc0890a9ff44857abe7041873afccb84..bcf442a1fefdd668863404a3cc02a68b1b133337 100644 (file)
 
 #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;
 
-typedef struct screen_functions {
+struct screen_functions {
        void (*init)(WINDOW *w, int cols, int rows);
        void (*exit)(void);
        void (*open)(struct mpdclient *c);
@@ -44,6 +39,6 @@ typedef struct screen_functions {
        void (*update)(struct mpdclient *c);
        bool (*cmd)(struct mpdclient *c, command_t cmd);
        const char *(*get_title)(char *s, size_t size);
-} screen_functions_t;
+};
 
 #endif