Signed-off-by: Daniel Lezcano <daniel.lezc...@free.fr> --- display.c | 2 +- display.h | 2 ++ powerdebug.c | 3 ++- powerdebug.h | 1 - 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); -- 1.7.1 _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev