Wykres commitów

243 Commity (20cbe6eb4fdf05380a4aa70dc41ee664d9c40882)

Autor SHA1 Wiadomość Data
Julien BLACHE 57bfede65b Plug an information leak in the net backend.
When sending out a SANE_NET_CONTROL_OPTION RPC for the SANE_ACTION_GET_VALUE
action (and SANE_ACTION_SET_AUTO for the network protocol versions < 3), the
backend was not clearing the memory area for the value argument before
sending it over the network, resulting in an information leak for the
SANE_ACTION_GET_VALUE case.
2008-04-13 14:44:20 +00:00
Julien BLACHE 8ed0d66582 Do not blindly use ftok() in snapscani_mutex_open(). Compute an IPC key based
on the product ID, bus number and device number for libusb devices; fallback
to ftok() otherwise and check the return value.
2008-03-28 20:39:02 +00:00
m. allan noah 127c77c1e5 add class 6 to usb detection code, fix scsi detection bug 2008-03-28 14:13:23 +00:00
Mattias Ellert 22efa538b7 Fix warnings about ignored --datarootdir 2008-02-03 06:59:36 +00:00
Alessandro Zummo 5af50cf25d fix compilation with cygwin
closes: #307969
2008-01-08 23:04:04 +00:00
Alessandro Zummo a386b0a960 added udp support functions 2007-12-26 11:18:26 +00:00
Mattias Ellert ac71384c82 Typo 2007-11-16 18:37:07 +00:00
Gerhard Jaeger 66269b670e Added sanei_usb_get_descriptor() to retrieve more info about a
device descriptor
2007-11-16 08:46:32 +00:00
Mattias Ellert 71be983cdd use SCSITaskSGElement if available 2007-11-10 15:44:41 +00:00
Mattias Ellert 93e856b53f Cross compilation fixes and libtool update 2007-11-10 07:12:55 +00:00
Julien BLACHE b349d9c500 Fix boundary checking after the for() loop in sanei_ab306_open(). From Johannes Meixner at SuSE. 2007-10-25 13:23:52 +00:00
Ilia Sotnikov fbae3e1b40 * Fixed empty liblib.a, libsanei.a produced by libtool - '-static' flag
is now mentioned in both compile & link stages to tell 'libtool' that static
  library is being built (static libraries are disabled by default when
  configure produces libtool from ltmain.sh).
2007-07-02 17:21:24 +00:00
Julien BLACHE 5dcf165795 Switch sanei_scsi to the SG_IO ioctl interface, instead of the
asynchronous SG3 read/write interface.

Makes it possible to use SCSI scanners in 32/64bit mixed environments,
thanks to the ioctl 32bit compatibility layer, which is NOT possible
using the SG3 interface.
2007-06-21 19:35:53 +00:00
Ilia Sotnikov b861ff6af5 + Use libtool instead of ar/ranlib, which correctly handles dependencies
(eg. for parallel makes)
2007-06-12 06:38:58 +00:00
Gerhard Jaeger 3766614f83 * sanei/sanei_scsi.c: Fixed retrieval of HZ. 2007-02-07 07:16:53 +00:00
Mattias Ellert 49d756ca44 Fixing compiler warnings 2007-01-20 23:02:53 +00:00
Alessandro Zummo 7a34d599e5 * sanei/sanei_tcp.c: added a missing include
* backend/epson2.c: fixed a bug while moving scanner data,
removed support for line mode (block or ext modes will be used).
2007-01-20 20:59:05 +00:00
Alessandro Zummo bf5a1290f7 * epson2: restructured code once more, splitted
in multiple files, added networking
support, added FS G extended handshaking mode,
make proper use of extended commands when possible
* sanei/sanei_tcp.c: read now wait until all
the requested data is available.
2006-12-18 00:13:09 +00:00
Alessandro Zummo b400664851 2006-12-01 Alessandro Zummo <a.zummo@towertech.it>
* Added sanei_tcp interface.
2006-11-30 23:23:19 +00:00
Karl Heinz Kremer 3d057d04c6 Applied Henning's patch, Fixed some compiler warnings. 2006-06-11 19:46:09 +00:00
Gerhard Jaeger c25e16f38a Added patch created by Vitaly Lipatov <LAV AT vl3143.spb.edu>:
Add --with-lockdir to configure for set path to lock dir
  Set PATH_SANE_LOCK_DIR really to lock dir (instead localstatedir)
Updated german translation file.
2006-06-07 07:28:31 +00:00
Wittawat Yamwong 2baa01effa Modified sanei_read_int(): call usb_clear_halt() if and only if the endpoint
is halted.
2006-05-26 07:58:15 +00:00
Henning Geinitz 92d177c049 Added USB support for DragonFlyBSD (bug #303183). 2006-03-11 12:56:34 +00:00
Henning Geinitz 1695dd4278 Workaround for compilation problem on Windows/cygwin. 2006-02-04 20:51:07 +00:00
Henning Geinitz 2b425ad61c Added checks for altsetting =! 0. 2006-01-22 16:52:13 +00:00
Mattias Ellert 6f301b10ed Fixing compilation warnings 2006-01-22 09:04:41 +00:00
Henning Geinitz a157bd3f09 Added warning if libusb support is not built in and some more debug messages. 2006-01-07 18:04:17 +00:00
Gerhard Jaeger 29c677e984 Fixed problem, when the device name contains one or more
path-separators. These characters are now converted. The
problem occurs on 2.4 based installations as well as on OpenBSD.
2005-12-07 13:49:39 +00:00
Jochen Eisinger eb446e2de1 2005-11-28 Jochen Eisinger <jochen@penguin-breeder.org>
* sanei/sanei_pa4s2.c: incorrect test of a bit mask.
2005-11-28 22:24:17 +00:00
Mattias Ellert cfd52e328f Adding some debugging. Fixing some warnings. 2005-11-22 21:17:20 +00:00
Oliver Schwartz 034f05523d Fixes for Benq 5000 2005-11-02 19:22:06 +00:00
Henning Geinitz f85bbc0a0b Added support for detecting vendor and product id with FreeBSD kernel scanner
driver (based on patch in FreeBSD ports).
2005-11-01 20:57:03 +00:00
Henning Geinitz 947339db25 Run "makedepend" if it's available. This way "make" builds
backends correctly even if only included files (e.g. headers) are
	  changed. Don't be too verbose when running makedepend.
	  Create links libsane-*.so.1 to the real library files if the
	  links are not there. This fixes dynamic loading on OpenBSD. The
	  links are not created for MacOS X as they don't work there.
	  Remove any libsane.* links in /usr/local/lib/sane. Such links
	  are created by libtool. As they point to libsane-v4l.so,
	  scanimage -L doesn't find any scanner in case of ld.so
	  misconfigurations.
	  The install target is much quiter now and prints the libtool
	  message only once now.
2005-10-29 20:01:54 +00:00
Henning Geinitz b27183004c Ignore EBUSY from usb_set_configuration. This function fails, if a different
interface of the same device is claimed (e.g. by usblp).
2005-09-23 12:52:35 +00:00
Mattias Ellert 21f94b0264 Fix SANE_DEBUG_SANEI_PV8630 2005-09-22 19:02:25 +00:00
Henning Geinitz 4b2d240870 Minor fixes for usbcalls interface (patch from Paul Smedley <paul@smedley.info>). 2005-08-09 16:28:38 +00:00
Henning Geinitz b29ea31da2 Fixed some compilation warnings. 2005-08-07 15:53:03 +00:00
Henning Geinitz 2d224c4a75 Added support for usb functionality on OS/2 using the usbcalls interface (patch
from Paul Smedley <paul@smedley.info>).
2005-08-07 14:26:33 +00:00
Henning Geinitz 00e9b16d58 Removed "const" to make gcc on OS/2 happy. 2005-07-17 16:18:34 +00:00
Henning Geinitz 6c3427c52d Changes to support SANE on ZETA. Not all
patches have been applied yet, but it's a start. The backends
	  are not installed as shared libs but as add-ons, which are shared libs
	  but in a specific folder in [/system|~]/config/add-ons/ named SANE/.
	  The install target has been changed to account for this,
	  Some files don't exist in BeOS/ZETA (ipc.h, ...).
	  Bbackend function names get a prefix, I suppose to avoid namespace clashes.
	  Though we do have a libdl to implement dl_open, the native way is prefered.
	  Added a --with-docdir= configure arg.
	  BeOS has a broken get[name|addr]info() from bind. This is fixed in ZETA R1.
	  libtool needs -no-undefined. Various VPATH fixes.
	  Check for <be/drivers/USB_scanner.h>, but not used yet.
	  No S_IFSOCK (sockets are fds to /dev/net/api). Stub pio code, untested.
	  Patch from Francois Revol <revol@free.fr>.
2005-07-15 21:59:25 +00:00
Henning Geinitz 2dd4b1822c Fixed comment (we still use 30 seconds USB timeout by default). 2005-07-15 18:16:35 +00:00
Rene Rebe e5193fdcae Added support to set the USB timeout. 2005-07-15 09:02:02 +00:00
Gerhard Jaeger 87b05d4524 Added PATH_MAX, in case it's not defined by any
header (i.e. OS/2).
2005-05-10 06:51:25 +00:00
Gerhard Jaeger 7cc112b202 Added outb_eppdata() functionality (thanks to Anderson Lizardo). 2005-04-25 09:51:32 +00:00
Gerard Klaver 7e1d450ca9 -More debug info for control and isochronous mode
-Detects endpoints for different configurations, interface and
altsetting numbers > 0
- Routine added for changing configuration, interface or altsetting
number
   sanei_usb_set_configuration
   sanei_usb_claim_interface
   sanei_usb_release_interface
   sanei_usb_set_altinterface
2005-04-15 20:48:24 +00:00
Jochen Eisinger ecdbf48171 2005-04-10 Jochen Eisinger <jochen@penguin-breeder.org>
* backend/mustek_pp.c, backend/mustek_pp.conf, sanei/sanei_pa4s2.c,
	  include/sane/sanei_pa4s2.h, doc/sane-mustek_pp.man: added global
	  option "no_epp" to work around a known bug in the linux parport
	  code.
2005-04-10 11:53:16 +00:00
Gerhard Jaeger d498239305 Initial checkin. 2005-04-01 14:04:19 +00:00
Gerhard Jaeger ada4c07892 Added sanei_access.c 2005-04-01 14:03:52 +00:00
Gerhard Jaeger 7193bf15f9 Cleanup, uses now static array for parport
management instead of dynamically allocated.
Fixes at least a potential memory leak.
2005-02-08 11:32:14 +00:00
Rene Rebe 2d579021a0 2004-11-19 Rene Rebe <rene@exactcode.de>
* sanei/sanei_usb.c configure.in: use usb_interrupt_read instead of
          usb_bulk_read for sanei_usb_read_int. Fixes bug #300878. Added a                missing DBG output in sanei_usb_read_int. Check for
          usb_interrupt_read to make sure, we have at least version 0.1.8.
2004-11-19 16:44:32 +00:00