Wykres commitów

36 Commity (707-xerox_mfp-scx-4521-fixes-are-not-merged)

Autor SHA1 Wiadomość Data
David Ward 1a933bba7e Cast pointer arguments if needed when using "%p" format specifier
Pointer arguments must have type (void *) when printed with the format
specifier "%p".
2022-03-08 19:00:00 -05:00
David Ward f3162bafa8 Replace variable self-assignments to avoid Clang warnings
These were intended to suppress GCC warnings about unused variables.
However, this leads to different warnings from Clang instead.

Use another approach that suppresses warnings from both compilers.
2022-03-08 19:00:00 -05:00
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
Peter Marschall f611cab816 spelling fixes for v4l backend 2020-08-29 09:18:04 +02:00
Olaf Meeuwissen 95b4369166 v4l: Prefer C99 standard type over asm __u32. Re #291 2020-05-05 16:14:11 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen f0153bc7fe v4l: fix [-Werror=sign-compare] compiler warning 2016-08-28 12:58:56 +09:00
Olaf Meeuwissen 2f39c72270 v4l: fix [Wunused-parameter] compiler warnings 2016-07-18 17:11:26 +09:00
m. allan noah a1a04f7462 Use c90 compatible comments 2015-09-19 13:39:37 -04:00
Olaf Meeuwissen 9dd31f977c Move test on first array element into the loop 2015-09-19 12:02:57 -04:00
Sandro Mani 898270810d Fix string type option descriptor's size value 2015-09-19 12:02:57 -04:00
Julien BLACHE c5ca46c2d1 Fix v4l build with libv4l 0.8.3+ 2011-02-16 19:37:43 +01:00
Julien BLACHE 3de5c87388 Convert v4l1 BGR data to RGB 2010-11-08 18:01:29 +01:00
Marc Deslauriers b5f4056635 Loop through the read buffers to avoid getting stale frames 2010-11-07 10:17:53 +01:00
Julien BLACHE ec46508258 Use libv4l (libv4l1) for v4l device access in the v4l backend. Gives us
limited v4l2 devices support for free through libv4l1/libv4l2/libv4lconvert.
2008-12-17 15:52:46 +00:00
Julien BLACHE 4930880e8f Unmap mapped buffer in sane_cancel(). 2008-12-17 15:20:31 +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
m. allan noah 084a18b0c4 remove undocumented and otherwise unused SANE_CAP_ALWAYS_SETTABLE 2008-05-21 01:20:35 +00:00
Julien BLACHE 390e9b4884 backend/v4l.c: duplicate capability.name in attach() so that each device is listed with its actual name, not with the name of the last discovered device. Reported by Andreas Hartmann. 2005-04-28 21:18:41 +00:00
Henning Geinitz f75025e72b 64 bit fix from Frank Zago <fzago at austin dot rr dot com>. 2004-11-13 20:20:11 +00:00
Henning Geinitz 73b6b966b2 Used SANE_VALUE_SCAN_MODE_* constants. 2004-05-30 13:48:40 +00:00
Henning Geinitz 0777c60aa7 Don't include linux/videodev.h kernel header anymore. Use own defines
instead. Fixes bug #300324.
2003-12-21 22:51:42 +00:00
Henning Geinitz 5b6f9b8a5c Try to not include linux/videodev2.h to avoid compilation errors. 2003-11-16 18:00:17 +00:00
Henning Geinitz 0e70e29baf Moved union Option_Value from backend header files to sanei_backend.h. No need
to copy it over and over again. Changed header inclusion order in backend
files to include backend.h after sanei_backend.h. Based on a patch from stef
<stef-listes@wanadoo.fr>.
2003-09-12 16:10:33 +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 8b0a038f61 Big clean up of Video for Linux backend. Removed old unused stuff from qcam
and others including unused options and variables concerning direct port
access. Removed wcam license (no "substantial portions of code" are used any
more). Removed unuesed headers. Made lots of global variables local. Lots of
checks for null pointer dereferences and errors when opening files or using
ioctl/mmap. Added option to select grey or color mode. Added support for
different channels. Fixed lots of options.  Made sure ioctls are only used
when necessary.  Used vendor == "Noname".  Added ??? comments for suspicious
code.  Lots of minor fixes and cleanup. Added version number: 1.0-2.
2002-08-29 19:34:53 +00:00
Henning Geinitz 2b54c3e7c4 Used GNU indent style. 2002-08-25 19:36:18 +00:00
Henning Geinitz 421fa4e12a Fixed device list. Added more verbose error output. Unified DBG
messages. Fixed depth option. Reordered options in init_options to reflect
real order. Added some markers (/* ??? */) for suspicious code.
2002-08-25 19:25:37 +00:00
Henning Geinitz 5cea47aafe Fixed some warnings.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-21 15:26:35 +00:00
Henning Geinitz 4caa8e7af5 Some variables haven't been static. sane_set_io_mode must return
SANE_STATUS_GOOD if non_blocking == SANE_FALSE.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-08 17:49:55 +00:00
Petter Reinholdtsen 7e318fb164 Get rid of small memory leak when using 'scanimage -L'. 2001-02-12 19:31:01 +00:00
Henning Geinitz 60362b0219 2001-01-21 Henning Meier-Geinitz <hmg@gmx.de>
* AUTHORS: Added Tom Martone.
	* PROJECTS: Removed bh (now included in sane).
	* README: Added entry for sane-bh(5).
	* TODO: Removed bh. Updated BearPaw entry. Added entry about v4l
	  problem.
	* backend/v4l.c: Changed comment as v4l is part of the sane package.
2001-01-21 11:49:10 +00:00
Petter Reinholdtsen a21b6eafcd Remove some compiler warnings. 2000-09-19 03:48:08 +00:00
Petter Reinholdtsen 7f1f08b1cc Remove X11 dependency. 2000-09-18 09:49:29 +00:00
Petter Reinholdtsen b4a1a513c9 Merge devel (v1.0.3) into head branch. 2000-08-12 15:11:46 +00:00