aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:17 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 03:09:02 +0300
commiteeb137699e1bfa86ba6c5cf0ab8efd1b3bfb3a8c (patch)
treedc80d4be10066066e0152f92a0cf9e07d19202ad
parentca17a72ffd538c9e8a1832831ef8a4b6b3c17664 (diff)
downloadpowerdebug-eeb137699e1bfa86ba6c5cf0ab8efd1b3bfb3a8c.tar.gz
Replace colors definition by enum
and reduce the scope by moving it to the c file. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--display.c10
-rw-r--r--display.h9
2 files changed, 10 insertions, 9 deletions
diff --git a/display.c b/display.c
index aee5503..2d63908 100644
--- a/display.c
+++ b/display.c
@@ -20,6 +20,16 @@
#define print(w, x, y, fmt, args...) do { mvwprintw(w, y, x, fmt, ##args); } while (0)
#define NUM_FOOTER_ITEMS 5
+enum { PT_COLOR_DEFAULT = 1,
+ PT_COLOR_HEADER_BAR,
+ PT_COLOR_ERROR,
+ PT_COLOR_RED,
+ PT_COLOR_YELLOW,
+ PT_COLOR_GREEN,
+ PT_COLOR_BRIGHT,
+ PT_COLOR_BLUE,
+};
+
static WINDOW *header_win;
static WINDOW *regulator_win;
static WINDOW *clock_win;
diff --git a/display.h b/display.h
index 044af6c..047d674 100644
--- a/display.h
+++ b/display.h
@@ -13,13 +13,4 @@
* - initial API and implementation
*******************************************************************************/
-#define PT_COLOR_DEFAULT 1
-#define PT_COLOR_HEADER_BAR 2
-#define PT_COLOR_ERROR 3
-#define PT_COLOR_RED 4
-#define PT_COLOR_YELLOW 5
-#define PT_COLOR_GREEN 6
-#define PT_COLOR_BRIGHT 7
-#define PT_COLOR_BLUE 8
-
extern int display_init(void);