6 #include "main/module.h"
7 #include "util/color.h"
12 /* TODO: Variable count! */
15 /* We use struct in order to at least somehow 'authorize' client to use certain
16 * LED, preventing possible mess i.e. with conflicting patches or Lua scripts.
19 /* See header of bfu/leds.c for LEDs assignment. If you are planning to use
20 * some LED in your script/patch, please tell us on the list so that we can
21 * register the LED for you. Always check latest sources for actual LED
22 * assignment scheme in order to prevent conflicts. */
27 unsigned int used__
:1;
28 unsigned int value_changed__
:1;
29 unsigned int value__
:8;
32 /* Per-session led panel structure. */
34 struct led leds
[LEDS_COUNT
];
38 extern struct module leds_module
;
40 void init_led_panel(struct led_panel
*leds
);
42 void draw_leds(struct session
*ses
);
44 void menu_leds_info(struct terminal
*term
, void *xxx
, void *xxxx
);
46 struct led
*register_led(struct session
*ses
, int number
);
47 void unregister_led(struct led
*);
48 void set_led_value(struct led
*led
, unsigned char value
);
49 unsigned char get_led_value(struct led
*led
);
50 void unset_led_value(struct led
*led
);