tstatus/battery.h

20 lines
405 B
C
Raw Normal View History

2022-09-21 12:52:08 -05:00
/* see LICENSE file for details on license */
2022-09-20 18:08:37 -05:00
#ifndef TSTATUS_BATTERY_H
#ifdef FISH
#define BATTERY_DIR "sbs-20-000b"
#elif TOASTER
#define BATTERY_DIR "BAT0"
#else
/* just assume we're running on fish */
#define BATTERY_DIR "sbs-20-000b"
#endif
#define BATTERY_PRE "/sys/class/power_supply/"
#define BATTERY_CAP "/capacity"
int battery_module(struct module *module);
#endif
#define TSTATUS_BATTERY_H