hal/hald/linux2/addons addon-hid-ups.c,1.1,1.2

David Zeuthen david at freedesktop.org
Wed Mar 2 13:51:58 PST 2005


Update of /cvs/hal/hal/hald/linux2/addons
In directory gabe:/tmp/cvs-serv1685/hald/linux2/addons

Modified Files:
	addon-hid-ups.c 
Log Message:
2005-03-02  David Zeuthen  <davidz at redhat.com>

	* doc/spec/hal-spec.xml.in: Change this to remove the property
	battery.charge_level.maximum and introduce battery.charge_level.design
	and battery.charge_level.last_full instead

	* hald/linux2/addons/addon-hid-ups.c (ups_get_static): Update code
	to use new the new properties

	* hald/linux2/pmu.c (battery_refresh): Update code to use new the
	new properties

	* hald/linux2/apm.c (battery_refresh): Update code to use new the
	new properties

	* hald/linux2/acpi.c (battery_refresh): Update code to use new the
	new properties



Index: addon-hid-ups.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/addons/addon-hid-ups.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- addon-hid-ups.c	4 Feb 2005 05:24:25 -0000	1.1
+++ addon-hid-ups.c	2 Mar 2005 21:51:55 -0000	1.2
@@ -212,7 +212,9 @@
 
 					case 0x850083: /* DesignCapacity */
 						libhal_device_set_property_int (
-							ctx, udi, "battery.charge_level.maximum", uref.value, &error);
+							ctx, udi, "battery.charge_level.design", uref.value, &error);
+						libhal_device_set_property_int (
+							ctx, udi, "battery.charge_level.last_full", uref.value, &error);
 						break;
 
 					default:




More information about the hal-commit mailing list