hal/hald/linux2/addons addon-acpi.c,1.2,1.3
David Zeuthen
david at freedesktop.org
Wed Mar 2 13:10:16 PST 2005
Update of /cvs/hal/hal/hald/linux2/addons
In directory gabe:/tmp/cvs-serv30976/hald/linux2/addons
Modified Files:
addon-acpi.c
Log Message:
2005-03-02 David Zeuthen <davidz at redhat.com>
* hald/linux2/addons/addon-acpi.c (main): Do call Rescan() when we
get a battery event
Index: addon-acpi.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/addons/addon-acpi.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- addon-acpi.c 2 Mar 2005 19:19:13 -0000 1.2
+++ addon-acpi.c 2 Mar 2005 21:10:14 -0000 1.3
@@ -165,8 +165,10 @@
dbg ("ac_adapter event");
dbus_error_init (&error);
libhal_device_rescan (ctx, udi, &error);
- } else if (strncmp (acpi_path, "battery/", sizeof ("battery/") - 1) == 0) {
+ } else if (strncmp (acpi_path, "battery", sizeof ("battery") - 1) == 0) {
dbg ("battery event");
+ dbus_error_init (&error);
+ libhal_device_rescan (ctx, udi, &error);
}
} else {
More information about the hal-commit
mailing list