diff options
author | Daniel Lange <DLange@git.local> | 2020-09-15 08:00:01 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-09-15 08:00:01 +0200 |
commit | 8e8165109aca4e3c2a8558653df088d674061c78 (patch) | |
tree | d68c91ced3a78c65be9ae262ea84676e73cac68d /linux/Battery.h | |
parent | e9302ddfaeaad62b12bdd352958fb194a26f3c74 (diff) | |
parent | f80394a20254938142011855f2954b3f63fe5909 (diff) | |
download | debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.tar.gz debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.tar.bz2 debian_htop-8e8165109aca4e3c2a8558653df088d674061c78.zip |
Update upstream source from tag 'upstream/3.0.2'
Update to upstream version '3.0.2'
with Debian dir 26e1b8d7612e50e81b8325506c1ce54f71cba270
Diffstat (limited to 'linux/Battery.h')
-rw-r--r-- | linux/Battery.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/linux/Battery.h b/linux/Battery.h index 261cff0..8ca0d7f 100644 --- a/linux/Battery.h +++ b/linux/Battery.h @@ -1,5 +1,3 @@ -/* Do not edit this file. It was automatically generated. */ - #ifndef HEADER_Battery #define HEADER_Battery /* @@ -11,24 +9,6 @@ in the source distribution for its full text. Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com). */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif - -#define SYS_POWERSUPPLY_DIR "/sys/class/power_supply" - -// ---------------------------------------- -// READ FROM /proc -// ---------------------------------------- - -// This implementation reading from from /proc/acpi is really inefficient, -// but I think this is on the way out so I did not rewrite it. -// The /sys implementation below does things the right way. - -// ---------------------------------------- -// READ FROM /sys -// ---------------------------------------- - -extern void Battery_getData(double* level, ACPresence* isOnAC); +void Battery_getData(double* level, ACPresence* isOnAC); #endif |