aboutsummaryrefslogtreecommitdiff
path: root/powerdebug.h
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-10-07 13:51:53 +0530
committerAmit Arora <amit.arora@linaro.org>2010-10-07 13:51:53 +0530
commitc93e07180c85ff75949238d681caf88c09da3e5e (patch)
treea06dfc58a93831b7c31dc11fdef46433b48bf6a2 /powerdebug.h
parent6a943ecbcd933e2c40973590db7255e8dd9102ff (diff)
downloadpowerdebug-c93e07180c85ff75949238d681caf88c09da3e5e.tar.gz
Add Tabs for various features
Diffstat (limited to 'powerdebug.h')
-rw-r--r--powerdebug.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/powerdebug.h b/powerdebug.h
index 6b7f665..6ce68cd 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -26,6 +26,13 @@
#define VERSION "1.0"
#define VALUE_MAX 16
+#define TOTAL_FEATURE_WINS 3 /* Regulator, Clock and Sensor (for now) */
+
+WINDOW windows[TOTAL_FEATURE_WINS];
+extern char *win_names[TOTAL_FEATURE_WINS];
+
+enum {REGULATOR, CLOCK, SENSOR};
+extern int selectedwindow;
struct regulator_info {
char name[NAME_MAX];
@@ -82,10 +89,8 @@ extern void print_clock_info_line(int line, char *clockname, int flags,
extern void init_curses(void);
extern void fini_curses(void);
-extern void killall_windows(void);
+extern void killall_windows(int all);
extern void show_header(void);
extern void create_windows(void);
-extern int create_regulator_win(int row, int numrows, int *pshare);
-extern int create_clock_win(int row, int numrows, int *pshare);
-extern int create_sensor_win(int row, int numrows, int *pshare);
+extern void create_selectedwindow(void);
extern void show_regulator_info(int verbose);