Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:
$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c
And manually removing the comment from pieusb.c. Everything still builds
fine.
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320.
* AUTHORS: Added Michael Herder and me for pnm. Updated my email
address.
* TODO: Removed pnm entry about adding more options. Added entry about
epson backend freezing when trying to detect non-epson USB scanner.
Added entry about adding contact adresses to .desc files. Added
comment about me working on a sane man page. Removed entry about OS/2
problems in sanei_scsi.c.
* configure configure.in: Removed a newline in --help message.
* backend/pnm.c: Added several options: gamma tables
(-> arrays), resolution option (word list), read only test option
(SANE_CAP_SOFT_DETECT), several options for returning status codes
in sane_read (all of this is from Michael Herder <crapsite@gmx.net>).
Added build version info, print version information in sane_init.
Use ../include/sane/ for includes. Version is 1.0.1.
* backend/pnm.desc: Updated contact info and version.
* PROJECTS TODO: Added entry about E3 USB chipset.
* backend/dll.c backend/dll.desc: New version is 1.0.5. Version and
PACKAGE_VERSION is printed with debug level set to 1 or higher.
The version numbers of all backends that are loaded are printed
at debug level 3 or higher. Print error if backend with wrong
major version number is loaded. Some standardization changes
concerning the DBG messages.
* backend/net.c backend/net.desc: New version is 1.0.5. Version and
PACKAGE_VERSION is printed with debug level set to 1 or higher.
Some standardization changes concerning the DBG messages.
* backend/pnm.c: Return SANE_INFO_RELOAD_PARAMS even if the pnm
file doesn't exist or can't be loaded (from mh <crapsite@gmx.net>).
* doc/backend-writing.txt: Added AUTHORS to the list of things that
should be updated when including a new backend. Added points about
avoiding printf and exit in backends.
* doc/releases.txt: New file. This text summarizes some points to
pay attention to when a new release of sane-backends is made.
Additions and corrections are appreciated.
* doc/scanimage.man: Add some more information about the -V option.
* frontend/scanimage.c: The option -V now also prints the version of
the backend (ususally dll).
* backend/pnm.c: Fixed three segfaults due to buffer overruns:
maximum length of filename wasn't checked; maximum length in
sane_read wasn't always checked; ppm_type wasn't always set in
getparmfromfile. Added some checks for safety and removal of
warnings. Added DBG lines for every SANE API call.
* TODO: Added entries about the backend:devicename issue. Add a
comment about fronends not to crash when length is -1. Added entry
about sane-pie. Added point about fronends not checking if too
much data is delivered with sane_read.
* PROJECTS: Added entry about sane-pie.