battery.h 543 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef BATTERY_H
  2. #define BATTERY_H
  3. #include "../components_config.h"
  4. #ifndef BATTERY_FULL
  5. # define BATTERY_FULL "" /* "f" */
  6. #endif
  7. #ifndef BATTERY_UNKNOWN
  8. # define BATTERY_UNKNOWN "" /* "?" */
  9. #endif
  10. #ifndef BATTERY_CHARGING
  11. # define BATTERY_CHARGING "+" /* "+" */
  12. #endif
  13. #ifndef BATTERY_DISCHARGING
  14. # define BATTERY_DISCHARGING "-" /* "-" */
  15. #endif
  16. #ifndef BATTERY_REMAINING_NOT_DISCHARGING
  17. # define BATTERY_REMAINING_NOT_DISCHARGING "?"
  18. #endif
  19. struct remaining {
  20. int status, charge, current;
  21. };
  22. #endif /* BATTERY_H */