hal/hald/linux2/addons addon-hid-ups.c,1.5,1.6

David Zeuthen david at freedesktop.org
Sun May 8 20:48:08 PDT 2005


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

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

        * hald/linux2/addons/addon-hid-ups.c (ups_get_static): Assume
        battery is present (from Richard Hughes <hughsient at gmail.com>)



Index: addon-hid-ups.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/addons/addon-hid-ups.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- addon-hid-ups.c	8 Apr 2005 18:10:20 -0000	1.5
+++ addon-hid-ups.c	9 May 2005 03:48:06 -0000	1.6
@@ -228,6 +228,7 @@
 		}
 	}
 
+	libhal_device_set_property_bool (ctx, udi, "battery.present", TRUE, &error);
 	libhal_device_set_property_string (ctx, udi, "battery.type", "ups", &error);
 	libhal_device_add_capability (ctx, udi, "battery", &error);
 




More information about the hal-commit mailing list