Wykres commitów

26 Commity (aa032f458d9bf6a30209ff8cca7d36c475f9a480)

Autor SHA1 Wiadomość Data
Wolfram Sang eb42ad08d5 treewide: use SANE_CURRENT_* macros consistently
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.
2021-06-08 19:01:41 +02:00
Olaf Meeuwissen e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
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.
2021-02-12 17:41:38 +09:00
Olaf Meeuwissen a1133aa194 pnm: Fix [-Wshift-negative-value] compiler warning 2017-06-26 12:28:54 +09:00
Olaf Meeuwissen fc4b250a09 .editorconfig: use utf-8 charset throughout 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 2d46885228 pnm: fix [-Wformat=] compiler warning 2016-07-18 17:32:21 +09:00
Mark Buda c591d2b7da Correction of some spelling/grammatical errors in source code 2014-05-15 22:04:37 -04:00
m. allan noah 89d170c314 hide 'warming up' and 'hw locked' devices 2009-05-28 12:27:20 -04:00
Stéphane Voltz fc29149914 - conditional handling of SANE_STATUS_WARMING_UP and SANE_STATUS_LOCKED 2009-04-13 06:10:26 +00:00
m. allan noah 91598aa800 * backend/*.[ch]: nearly every backend used V_MAJOR
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Stéphane Voltz fa01ab9662 - added 2 more virtual devices. 'locked' which is hardware locked
and 'warmup' that always do warming-up before scan
2008-05-26 04:58:05 +00:00
Henning Geinitz 991bd09675 Fixed PACKAGE_VERSION breakage. PACKAGE_VERSION was redefined by autoconf 2.5
with a different meaning. Use PACKAGE_STRING instead.
2002-11-29 18:19:58 +00:00
Henning Geinitz 1a40cdb6e4 sane_set_io_mode checks for !non_blocking and scanning now. Fixed coding-style.
New version: 1.0.8.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-10 19:39:00 +00:00
Henning Geinitz c05ddb6092 Check if option is settable when automatically setting it. New version: 1.0.7.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-03-29 12:21:02 +00:00
Henning Geinitz 00c64adfa2 If fread returns 0, check for EOF and other errors and return appropriately.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-03-24 15:25:54 +00:00
Henning Geinitz c40aeba6b1 Don't allow to set options that don't have SANE_CAP_SOFT_SELECT and don't
allow read and write for options that are inactive. New version: 1.0.5.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-03-21 20:33:31 +00:00
Henning Geinitz e6b0a0c837 Removed descripions of options of type SANE_TYPE_GROUP. Fixed some translations.
New version: 1.0.4.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-15 22:38:27 +00:00
Henning Geinitz 57337989cf hand_scanner and three_pass options need SANE_INFO_RELOAD_PARAMETERS. All
options have a symbolic name now. Removed bogus translation from po. New
version: 1.0.3.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-11 18:26:29 +00:00
Henning Geinitz 3c0bd24a5a Added SANE_I18N() marks.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-10 17:15:35 +00:00
Henning Geinitz 5a044acd2d Make sure that *length=0 in sane_read(). Added more debug output.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-09-18 12:57:16 +00:00
Henning Geinitz fc231c3b01 Fixed SANE-standard compliancy bug in sane_read:
length must be set to 0 if status != SANE_STATUS_GOOD.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-09-09 21:35:54 +00:00
Henning Geinitz e5dc0a9742 2001-04-19 Henning Meier-Geinitz <henning@meier-geinitz.de>
* 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.
2001-04-19 21:10:26 +00:00
Henning Geinitz 30b517b433 2001-04-13 Henning Meier-Geinitz <hmg@gmx.de>
* 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).
2001-04-13 17:04:51 +00:00
Petter Reinholdtsen ec5eef8f35 Write more sensible error message when failing to open PNM file. 2001-02-22 09:45:29 +00:00
Henning Geinitz 070adee264 2000-09-30 Henning Meier-Geinitz <hmg@gmx.de>
* 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.
2000-09-30 13:41:16 +00:00
Petter Reinholdtsen b4a1a513c9 Merge devel (v1.0.3) into head branch. 2000-08-12 15:11:46 +00:00
Petter Reinholdtsen 30ab5e718a Initial revision 1999-08-09 18:06:01 +00:00