aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:14 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 03:04:15 +0300
commit192c1d23efe5f095305801e7535072df8f993a2a (patch)
treeccd0a371f3fba9e038b910cede681a37aff8f662
parentac5714bf291199e3d820dacbeabe902aa0fcf769 (diff)
downloadpowerdebug-192c1d23efe5f095305801e7535072df8f993a2a.tar.gz
Unify the init function name for display
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--display.c2
-rw-r--r--display.h2
-rw-r--r--powerdebug.c3
-rw-r--r--powerdebug.h1
4 files changed, 5 insertions, 3 deletions
diff --git a/display.c b/display.c
index fb252cb..8ea796a 100644
--- a/display.c
+++ b/display.c
@@ -65,7 +65,7 @@ void killall_windows(int all)
}
}
-void init_curses(void)
+void display_init(void)
{
initscr();
start_color();
diff --git a/display.h b/display.h
index a73ae43..d3c875a 100644
--- a/display.h
+++ b/display.h
@@ -21,3 +21,5 @@
#define PT_COLOR_GREEN 6
#define PT_COLOR_BRIGHT 7
#define PT_COLOR_BLUE 8
+
+extern void display_init(void);
diff --git a/powerdebug.c b/powerdebug.c
index d337cc8..8244df2 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -16,6 +16,7 @@
#include <getopt.h>
#include <stdbool.h>
#include "regulator.h"
+#include "display.h"
#include "powerdebug.h"
static int highlighted_row;
@@ -261,7 +262,7 @@ int mainloop(struct powerdebug_options *options,
fd_set readfds;
if (firsttime[0])
- init_curses();
+ display_init();
create_windows(options->selectedwindow);
show_header(options->selectedwindow);
diff --git a/powerdebug.h b/powerdebug.h
index f424c1f..29b1177 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -47,7 +47,6 @@ extern void get_sensor_info(char *path, char *name, char *sensor, int verbose);
extern int read_and_print_sensor_info(int verbose);
extern void print_sensor_header(void);
-extern void init_curses(void);
extern void fini_curses(void);
extern void killall_windows(int all);
extern void show_header(int selectedwindow);