ELinks 0.18.0
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "elinks.h"
#include "bfu/leds.h"
#include "config/options.h"
#include "document/document.h"
#include "document/view.h"
#include "intl/libintl.h"
#include "main/module.h"
#include "main/timer.h"
#include "osdep/osdep.h"
#include "session/session.h"
#include "terminal/draw.h"
#include "terminal/tab.h"
#include "terminal/terminal.h"
#include "terminal/window.h"
#include "util/color.h"
#include "util/error.h"
#include "viewer/timer.h"
Macros | |
#define | get_opt_leds(which) led_options[(which)].option.value |
#define | get_leds_clock_enable() get_opt_leds(LEDS_CLOCK_ENABLE).number |
#define | get_leds_clock_format() get_opt_leds(LEDS_CLOCK_FORMAT).string |
#define | get_leds_panel_enable() get_opt_leds(LEDS_PANEL_ENABLE).number |
#define | get_leds_show_ip_enable() get_opt_leds(LEDS_SHOW_IP_ENABLE).number |
#define | get_leds_show_mem_enable() get_opt_leds(LEDS_SHOW_MEM_ENABLE).number |
#define | get_leds_temperature_enable() get_opt_leds(LEDS_TEMPERATURE_ENABLE).number |
#define | get_leds_temperature_filename() get_opt_leds(LEDS_TEMPERATURE_FILENAME).string |
Functions | |
static void | redraw_leds (void *) |
void | init_leds (struct module *module) |
void | done_leds (struct module *module) |
void | set_led_value (struct led *led, unsigned char value) |
unsigned char | get_led_value (struct led *led) |
void | unset_led_value (struct led *led) |
void | init_led_panel (struct led_panel *leds) |
static int | draw_timer (struct terminal *term, int xpos, int ypos, struct color_pair *color) |
static int | draw_show_ip (struct session *ses, int xpos, int ypos, struct color_pair *color) |
static int | draw_show_mem (struct session *ses, int xpos, int ypos, struct color_pair *color) |
static int | draw_temperature (struct session *ses, int xpos, int ypos, struct color_pair *color) |
static milliseconds_T | compute_redraw_interval (void) |
void | draw_leds (struct session *ses) |
static int | sync_leds (struct session *ses) |
static void | update_download_led (struct session *ses) |
void | menu_leds_info (struct terminal *term, void *xxx, void *xxxx) |
struct led * | register_led (struct session *ses, int number) |
void | unregister_led (struct led *led) |
Variables | |
static int | timer_duration_backup = 0 |
static timer_id_T | redraw_timer = TIMER_ID_UNDEF |
static int | drawing = 0 |
static union option_info | led_options [] |
struct module | leds_module |
#define get_leds_clock_enable | ( | ) | get_opt_leds(LEDS_CLOCK_ENABLE).number |
#define get_leds_clock_format | ( | ) | get_opt_leds(LEDS_CLOCK_FORMAT).string |
#define get_leds_panel_enable | ( | ) | get_opt_leds(LEDS_PANEL_ENABLE).number |
#define get_leds_show_ip_enable | ( | ) | get_opt_leds(LEDS_SHOW_IP_ENABLE).number |
#define get_leds_show_mem_enable | ( | ) | get_opt_leds(LEDS_SHOW_MEM_ENABLE).number |
#define get_leds_temperature_enable | ( | ) | get_opt_leds(LEDS_TEMPERATURE_ENABLE).number |
#define get_leds_temperature_filename | ( | ) | get_opt_leds(LEDS_TEMPERATURE_FILENAME).string |
#define get_opt_leds | ( | which | ) | led_options[(which)].option.value |
enum led_option |
|
static |
void done_leds | ( | struct module * | module | ) |
void draw_leds | ( | struct session * | ses | ) |
|
static |
|
static |
|
static |
|
static |
unsigned char get_led_value | ( | struct led * | led | ) |
void init_led_panel | ( | struct led_panel * | leds | ) |
void init_leds | ( | struct module * | module | ) |
void menu_leds_info | ( | struct terminal * | term, |
void * | xxx, | ||
void * | xxxx ) |
|
static |
struct led * register_led | ( | struct session * | ses, |
int | number ) |
void set_led_value | ( | struct led * | led, |
unsigned char | value ) |
|
static |
void unregister_led | ( | struct led * | led | ) |
void unset_led_value | ( | struct led * | led | ) |
|
static |
|
static |
|
static |
struct module leds_module |
|
static |
|
static |