[sane-devel] patch for sane-desc.c / support for descfiles / modifications

Dieter Jurzitza dieter.jurzitza at t-online.de
Sat Jan 10 21:01:45 UTC 2009

Dear listmembers,
attached please find two patches. The first one goes against sane-desc.c and 
provides the functionality, that the information regarding the "raw" 
interfacing of a SCSI-scanner is taken from the .desc-files.
I introduced the following additional parameter and format to the desc-files:

:scsi "HP" "C7670A" "processor"

<keyword> :scsi

A patch modifying the currently known .desc files in accordance (only 
epson.desc and hp.desc for now) is attached, too.

The scsi bus is now treated in the same manner as the usb bus with regard to 
hal output. Only those devices that promote themselves as "processor" will be 
included into hal - output, what makes a lot of sense IMHO.

On top of this, the following sequence should be integrated somewhere in the 
hal-database separated from the sane-scanner database:
     <!-- Generic SCSI Scanner device -->
     <match key="@info.parent:scsi.type" string="scanner">
        <append key="info.capabilities" type="strlist">scanner</append>

I removed all "suse-isms and refer to the original files from 

For better readability I separated sane-desc.c in a include/sane/sane-desc.h 
and a tools/sane-desc.c, the first one containing all defines and all header 
files - well, business as usual.

Please comment this and let me know what changes should be integrated on top 
of this.

Thank you for taking the time to look into it,
take care

Dieter Jurzitza


                 /\_/\           |
                | ~x~ |/-----\   /
                 \   /-       \_/
  ^^__   _        /  _  ____   /
 <°°__ \- \_/     |  |/    |  |
  ||  ||         _| _|    _| _|

if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane-backends-1.0.19-descfiles.patch
Type: text/x-diff
Size: 736 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20090110/a99b133f/attachment-0002.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane-backends-1.0.19-sane-desc.patch
Type: text/x-diff
Size: 26646 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20090110/a99b133f/attachment-0003.patch 

More information about the sane-devel mailing list