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:
marschap committed 2006-02-18 19:50:50 +00:00
1 parent d77ada0bde
commit 6bc60a92fe
20 files changed
+224 -510

No files matched your search

+1 -12
View File
@@ -71,24 +71,13 @@ battery_status(int status)
// +--------------------+
//
int
#ifdef LCDPROC_MENUS
battery_screen (int rep, int display, int * flags_ptr)
#else
battery_screen (int rep, int display)
#endif
battery_screen (int rep, int display, int *flags_ptr)
{
int acstat = 0, battstat = 0, percent = 0;
int gauge_wid = lcd_wid - 2;
#ifdef LCDPROC_MENUS
if ((*flags_ptr & INITIALIZED) == 0) {
*flags_ptr |= INITIALIZED;
#else
static int first = TRUE;
if (first) {
first = FALSE;
#endif
sock_send_string (sock, "screen_add B\n");
sprintf (buffer, "screen_set B -name {APM stats: %s}\n", get_hostname());