acpi updates

Richard Hughes ee21rh at surrey.ac.uk
Sun Jan 30 06:40:41 PST 2005


Okay, I know the initial patch hasn't even been merged yet, but I've
been working more on the code...(*)

Patch to HEAD (assuming nobody has committed anything yet...) is here:

http://hughsie.no-ip.com/write/hal/hal-patch-procfs-compile3.patch

Changes from compile2 include:
* add basic apm support:/dev/apm
* make battery_0 = battery_BAT0, i.e. usable easily from addons.
* comment fixes...
* in procfs_getbool() check for answer, not answer->len, else SEGV
* in procfs_getbool() only free string if (answer), else leak.
* in procfs_acpi.c, system.acadaptor.present -> system.ac_adaptor.present
* zero out battery readings if not present 
* make general structure so we can pass path, name, and type by ref to
simplify the functions calling greatly.
* made button skeleton functions.

Seeing as the screenshot went down so well, here is another:

http://hughsie.no-ip.com/write/hal/screenshot-002.jpg


Richard.

(*) I'll ill with a cold, can't speak much, and sitting with my laptop in
bed bored. My girlfriend says I should read a book and chill out, I prefer
programming....

-- 

http://www.hughsie.com/PUBLIC-KEY


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list