openbsd-ports/x11/xmobar/files/apm.h
kili 671ec9137c Update to to version 0.11.1.
Add battery monitor support for OpenBSD.

From maintainer Jona Joachim.
2010-07-17 14:55:21 +00:00

15 lines
251 B
C

#ifndef _CBATT_H_
#define _CBATT_H_
#include <err.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <machine/apmvar.h>
#define APMDEV "/dev/apm"
int get_power_info(struct apm_power_info *power_info);
#endif /* _CBATT_H_ */