clean up lcdproc client and add menu support (to be enabled at compile time) -
based upon patch by Andrew Foss
This commit is contained in:
1 parent
d77ada0bde
commit
6bc60a92fe
20 files changed
+224
-510
No files matched your search
+11
-14
@@ -32,22 +32,19 @@ extern int lcd_cellhgt;
|
||||
|
||||
typedef struct mode
|
||||
{
|
||||
char *longname; // Which screen is it?
|
||||
char which; // Which screen is it?
|
||||
int on_time; // How often to update while visible?
|
||||
int off_time; // How often to get stats while not visible?
|
||||
int show_invisible; // Send stats while not visible?
|
||||
int timer; // Time since last update
|
||||
#ifdef LCDPROC_MENUS //struct mode flags
|
||||
int flags; //bit 1 visible, bit 2 selected for display, bit 3 first
|
||||
#else
|
||||
int visible; // Can we be seen right now?
|
||||
#endif //LCDPROC_MENUS
|
||||
char *longname; // Which screen is it?
|
||||
char which; // Which screen is it?
|
||||
int on_time; // How often to update while visible?
|
||||
int off_time; // How often to get stats while not visible?
|
||||
int show_invisible; // Send stats while not visible?
|
||||
int timer; // Time since last update
|
||||
int flags; // bit 1 visible, bit 2 selected for display, bit 3 first
|
||||
} mode;
|
||||
|
||||
//mode flags
|
||||
#define VISIBLE 0x00000001 //currently visible
|
||||
#define ACTIVE 0x00000002 //selected for display
|
||||
#define INITIALIZED 0x00000004 //replaces the first variable to indicate whether the update screens are initialized
|
||||
#define VISIBLE 0x00000001 //currently visible
|
||||
#define ACTIVE 0x00000002 //selected for display
|
||||
#define INITIALIZED 0x00000004 //replaces the first variable to indicate whether the update screens are initialized
|
||||
|
||||
#define BLINK_ON 0x10
|
||||
#define BLINK_OFF 0x11
|
||||
|
||||
Reference in new issue
Block a user