Hi, On Sat, Nov 16, 2002 at 03:06:12PM +0100, Oliver Rauch wrote: > Henning Meier-Geinitz schrieb: > > > > > Examples: "mustek_usb:/dev/scanner" --> "mustek_usb" > > "mustek_usb:libusb:001:002" --> "001" > > > > Is ":libusb" a keyword we can search for in thos way: > if ":libusb" is part of the device name then use the > text before ":libusb" instead of before the last ":" ?
I think so. The "device" file names are always: libusb:bus:device Only the "bus" and "device" parts vary. They can be numbers or paths. The reast of the name is from dll.c, if I remember correctly. So dll.c adds "mustek_usb:" in front of the "libusb:bus:device". By the way: I think there is no way to detect the backend name if the backend is linked to xsane directly (without sane-dll). Bye, Henning
