Feature requests for hal battery backend.
Richard Hughes
hughsient at gmail.com
Mon Aug 1 08:41:23 PDT 2005
On Mon, 2005-08-01 at 04:15 -0400, Ryan Lortie wrote:
> A patch to implement the second half of the feature requests is
> attached.
>
> This patch is 100% completely untested so it might segfault hal on
> startup. I have no way to test it as my laptop isn't ACPI (Powerbook
> here, too).
>
> All I can say is "it compiles" and "the rough idea is there". :)
>
> Please test it out and give feedback.
+typedef struct BatteryItem_s
+{
+ HalDevice *device;
+ struct BatteryItem_s *next;
+} BatteryItem;
+
+BatteryItem *acpi_battery_list;
David? What about just searching for batteries by capability rather than
keeping a list around?
+static void
+battery_update_remaining_times (void)
+}
Logic works for me.
Would this work for the battery removed case?
Richard.
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list