On Wednesday 21 March 2007 02:51, David Zeuthen wrote: >[...] > > Also, handling more than one scanner could be complicated, depending > > on what you want to do, how you want to do it, and what is already > > done in the backend. > > Plan is to invoke an instance of the addon per connected device and each > instance of the addon would just use libsane to connect to the given > device (HAL gives the address of the device).
How can HAL address be converted to libsane device name? AFAIK, there is no direct mapping between platform/OS dependent USB device node and the device name used by libsane. For example: pixma backend uses the device name in the form "xxxxyyyy_zzzzzz" where xxxx, yyyy and zzzzzz are the vendor ID, the product ID and the serial number of the scanner resp. Other backends may use something like "libusb:/dev/bus/001/001", "Model1234" etc. Regards -- Wittawat Yamwong Hannover, Germany