Code

colors: colors_update_pair(), colors_start() and colors_use() return void
[ncmpc.git] / src / colors.h
index f049df8766d1a7c600002f0ebc9e2972dfdf6ec6..c166c363be4378e7c774eff76cc099a1b50a78a0 100644 (file)
@@ -1,5 +1,5 @@
 /* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
  * Project homepage: http://musicpd.org
  *
  * This program is free software; you can redistribute it and/or modify
 
 #include "config.h"
 #include "ncmpc_curses.h"
+#include "Compiler.h"
 
 enum color {
        COLOR_TITLE = 1,
        COLOR_TITLE_BOLD,
        COLOR_LINE,
        COLOR_LINE_BOLD,
+       COLOR_LINE_FLAGS,
        COLOR_LIST,
        COLOR_LIST_BOLD,
        COLOR_PROGRESSBAR,
@@ -41,14 +43,18 @@ enum color {
        COLOR_END
 };
 
+gcc_pure
 int colors_str2color(const char *str);
 
 #ifdef ENABLE_COLORS
 int colors_assign(const char *name, const char *value);
 int colors_define(const char *name, short r, short g, short b);
-int colors_start(void);
+
+void
+colors_start(void);
 #endif
 
-int colors_use(WINDOW *w, enum color id);
+void
+colors_use(WINDOW *w, enum color id);
 
 #endif /* COLORS_H */