[sane-devel] SCSI-scanners and HAL / patch for sane-desc.c
Julien BLACHE
jb at jblache.org
Thu Jan 8 16:41:33 UTC 2009
Dieter Jurzitza <dieter.jurzitza at t-online.de> wrote:
Hi,
> @@ -3180,9 +3196,10 @@
>
> print_udev_header ();
> printf("ACTION!=\"add\", GOTO=\"libsane_rules_end\"\n"
> - "ENV{DEVTYPE}==\"usb_device\", GOTO=\"libsane_create_usb_dev\"\n"
> - "SUBSYSTEM==\"usb_device\", GOTO=\"libsane_rules_begin\"\n"
> - "SUBSYSTEM!=\"usb_device\", GOTO=\"libsane_rules_end\"\n"
> + "# ENV{DEVTYPE}==\"usb_device\", GOTO=\"libsane_create_usb_dev\"\n"
^^^^^
You broke something.
> + "SUBSYSTEMS==\"scsi\", GOTO=\"libsane_scsi_rules_begin\"\n"
> + "SUBSYSTEM==\"usb\", GOTO=\"libsane_usb_rules_begin\"\n"
> + "SUBSYSTEM!=\"usb\", GOTO=\"libsane_usb_rules_end\"\n"
> "\n");
>
> printf("# Kernel >= 2.6.22 jumps here\n"
> --- include/sane/sane-desc.h.original 2009-01-08 00:20:27.000000000 +0100
> +++ include/sane/sane-desc.h 2009-01-08 13:25:32.000000000 +0100
> @@ -0,0 +1,13 @@
> +/*
> + * this is the file sane-desc.h. It contains only the character array with
> + * the name definitions of SCSI-scanners promoting themselves as "processors".
> + * The first entry specifies the manufacturer of the device, the second entry
> + * the name how it promotes itself through the SCSI-bus and the third entry
> + * depicts it's "normal" name.
> + */
> +
> +const char * scsi_processors[][3] = {
> + {"Hewlett Packard", "C6270A", "ScanJet 6200C"},
> + {"Hewlett Packard", "C7670A", "ScanJet 6300C"},
> + {NULL, NULL, NULL}
> + };
That should be added to the desc files, not in a new list in a new
header.
JB.
--
Julien BLACHE <http://www.jblache.org>
<jb at jblache.org> GPG KeyID 0xF5D65169
More information about the sane-devel
mailing list