tstatus/battery.h

20 lines
396 B
C

/* see LICENSE file for details on license */
#ifndef TSTATUS_BATTERY_H
#ifdef FISH
#define BATTERY_DIR "sbs-20-000b"
#elif TOASTER
#define BATTERY_DIR "BAT0"
#else
/* just assume the battery is BAT0 */
#define BATTERY_DIR "BAT0"
#endif
#define BATTERY_PRE "/sys/class/power_supply/"
#define BATTERY_CAP "/capacity"
int battery_module(struct module *module);
#endif
#define TSTATUS_BATTERY_H