- store more Request Sense data in scanner struct
- clear Request Sense data at start of every do_cmd() call
- track per-side ILI and global EOM flags
- set per-side EOF flag if ILI and EOM are set
- sense_handler(): collect rs_info for any ILI, not just EOM
- do_usb_cmd(): use rs_info whenever set, not just EOF
- read_from_*(): better handling of EOF from lower level functions
- sane_read(): improve duplexing logic
Updated 4 pre-existing SCSI models with commonly used
model names. This allows wider range of Epson SCSI scanners
to be correctly detected using auto-generated hal and udev
files. This benefits epkowa, epson2, and epson backends.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Traced source of conflicting connect() defines to p5
backend including libc.h header file. On OSX, this
includes socket.h. Since backend didn't really need
libc.h header and is not a networked backend, reverted
last fix and implement header based fix.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
socket.h is being included on OSX currently and P5's
static connect is conflicting with socket.h's connect().
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
cygwin and mingw is now hiding M_PI_2 defines with -ansi flag.
Remove to fix cygwin compile.
Mingw doesn't support fork() so default to pthreads.
Add u_short to complete definition of u_* types which helps out mingw
when we define _BSDTYPES_DEFINED.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Not quite ready to support pkg-config yet but go ahead and provide
basic support in configure to discourage distributions that are
patching pkg-config support in to no longer run "autoreconf -f"
and wiping out our custom libtool. sane-backends.pc will not
be installed currently.
Also, fixed a LDFLAGS bug in sane-config for GPHOTO2 support.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Allow user to configure support for rpath compiler
option. Ported from Fedora's sane-backend patches.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Removed direct include of usb.h in backend since it
should be using sanei_usb. Completed prototype
of sane_exit(void) for some versions of gcc that are
strict about that.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>