battery.technology, take 2

Richard Hughes hughsient at gmail.com
Sun Jul 30 04:26:12 PDT 2006


Okay, attached is an updated patch that modifies battery.technology to
one of 3 present values "lithium-ion", "lead-acid" or "unknown" -- but
it will be trivial to add more types as they are discovered.

The patch adds two more files, util-extern.c and util-extern.h -- these
are used so that we don't have to drag in all the deps for util.c in the
probers and addons that only use libhal, and not the hal_* functions.

API is compatible, as the key battery.technology is now the "sanitised"
key, and battery.reporting.technology is the key that is the "reported"
key for the hardware, similar to what we do with the charge level.

Comments please.

Richard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-technology01.patch
Type: text/x-patch
Size: 10531 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060730/358ca1f8/hal-fix-technology01-0001.bin


More information about the hal mailing list