hal/tools/device-manager Const.py.in,1.8,1.9

Joe Shaw joe at pdx.freedesktop.org
Tue May 25 13:09:31 PDT 2004


Update of /cvs/hal/hal/tools/device-manager
In directory pdx:/tmp/cvs-serv17367/tools/device-manager

Modified Files:
	Const.py.in 
Log Message:
2004-05-25  Joe Shaw <joeshaw at novell.com>

	* hald/Makefile.am: Add the ieee1394 class devices.

	* hald/linux/block_class_device.c: Replace use of locally defined
	AsyncInfo with ClassAsyncData.

	* hald/linux/bus_device.c: Replace use of locally defined
	AsyncInfo with BusAsyncData.

	* hald/linux/class_device.c: Replace use of locally defined
	AsyncInfo with ClassAsyncData.
	(class_device_accept): Check here if the class device has a
	sysdevice and reject it if it doesn't.
	(class_device_visit): Don't check for it here.  If it is NULL, set
	merge_or_add to FALSE so that we don't try to merge it onto a fake
	device.  If the sysdevice is NULL, set the parent sysfs path to
	"(none)", which will match our fake parent device.
	(class_device_final): Take a third argument for merge_or_add and
	check it instead of the ClassDeviceHandler's default behavior.

	* hald/linux/ieee1394_class_device.c,
	hald/linux/ieee1394_host_class_device.c,
	hald/linux/ieee1394_node_class_device.c: New IEEE1394 class device
	implementation.  Seems to even work somewhat on some small subset
	of the world's computers.

	* hald/linux/net_class_device.c (net_class_pre_process): If there
	is an address, set the net.address property to it, regardless of
	what type of net device it is.
	(net_class_accept): Added.  Allows us to have net class devices
	without an associated sysdevice.  Only allow it if it's an
	ethernet device for now.
	(net_class_compute_udi): Added.  Needed in situations where the
	class device has no sysdevice, we need to generate a UDI since we
	aren't merging onto a parent device.

	* hald/linux/osspec.c: Reenable the ieee1394 class device
	handlers.
	(osspec_probe): Create a fake root device to be the parent for all
	of our sysdevice-less devices.  It's a virtual device, has the UDI
	"/org/freedesktop/Hal/devices/fakeroot", and the sysfs path device
	of "(none)".

	* tools/device-manager/Const.py.in (BUS_NAMES): Add "unknown" to
	the list of known bus names.
	

Index: Const.py.in
===================================================================
RCS file: /cvs/hal/hal/tools/device-manager/Const.py.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- a/Const.py.in	26 Apr 2004 16:52:54 -0000	1.8
+++ b/Const.py.in	25 May 2004 20:09:29 -0000	1.9
@@ -16,7 +16,8 @@
 TITLE_COLUMN  = 1
 UDI_COLUMN    = 2
 
-BUS_NAMES = {"usb"         : "USB",
+BUS_NAMES = {"unknown"     : "Unknown",
+             "usb"         : "USB",
              "usbif"       : "USB Interface",
              "pci"         : "PCI",
              "i2c"         : "I2C",





More information about the hal-commit mailing list