enlightenment/src/modules/sysinfo/batman
Alastair Poole 389e9bfb02 batman: FreeBSD and OpenBSD (sysctl)
After the work on the sysinfo gadgets for Linux the BSD variant
code was a little bit of an afterthought. These changes provide
us with unlimited battery/sysinfo gadgets and reliable status
for our battery or batteries and our power supply.

This patch allows us to add and remove (many) batman gadgets to
the desktop without negatively affecting existing instances.
It also takes into account additional sysinfo gadgets that include
a batman instance.

Iterating through the existing array of sysinfo gadgets to find
multiple instances and apply changes it not ideal but it does
not affect the Linux code, and keeps this change relatively
simple.

Tested on FreeBSD and OpenBSD with various hardware setups.
Thanks to Peter2121 (Quelrond) for his testing.

There is work to now improve batman's Linux behaviour to match that
of the behaviour on BSD systems.
2019-12-02 20:47:01 +00:00
..
batman.c batman: FreeBSD and OpenBSD (sysctl) 2019-12-02 20:47:01 +00:00
batman.h batman: FreeBSD and OpenBSD (sysctl) 2019-12-02 20:47:01 +00:00
batman_config.c formatting 2017-08-29 15:32:18 -04:00
batman_fallback.c more E_BITFIELD conversions 2017-11-08 09:22:24 -05:00
batman_sysctl.c batman: FreeBSD and OpenBSD (sysctl) 2019-12-02 20:47:01 +00:00
batman_udev.c Batman: Don't leak stringshare when returning from update early. 2019-01-23 20:55:40 -06:00
batman_upower.c Sysinfo Batman Upower - use the correct functions for processing. 2018-08-08 09:38:25 -05:00