Not all pthreads implementations use an integer type for pthread_t.
As a matter of fact, POSIX has explicitly withdrawn the requirement
that it must be an arithmatic type.
The musl C library uses a `struct __pthread *` which triggered the
warnings. As of this change, sanei_thread.h works around this by
providing two new macros to help keep this issue out of sight. All
backends have been changed to use these macros.
This gets rid of a number of obsoleted macros and replaces RETSIGTYPE
with a void literal which can be assumed for C89 and later.
This changeset was prepared using autoupdate and modified to get rid of
whitespace and doubled [] changes. Changes to acinclude.m4 were added
by hand.
backend/pixma_sane_options.c backend/pixma_sane_options.h:
- added new options:
original (type of original to be scanned)
target (action to be perfomed as target of the scan)
Both these indocators can be returned by the scanner.
pixma_mp810 can definately return these (e.g. for my MP980)
I have assumed that the same applies to devices in pixma_mp150.c
The target used to be returned in button1/2 in bits 0 - 8.
- All button options are now read and cached when any of the options
are read (SANE_ACTION_GET_VALUE) or SANE_ACTION_SET_VALUE is used
on option button_update.
When reading an option again, the status of all options is re-read.
- Added a dummy info field that is used in case info is NULL
as this is a valid input
add some settings for MF8030, not yet working (different protocol)
modified: backend/pixma.c
modified: backend/pixma.h
modified: backend/pixma_common.c
modified: backend/pixma_imageclass.c
doc/descriptions/pixma.desc
doc/sane-pixma.man
backend/pixma_mp150.c
Updated docs for MX330, supported by the pixma backend.
backend/pixma.h: Bumped pixma backend version added debug message.
backend/pixma.c: added compilation type (w or w/o pthread) debug message.
- backend/pixma.c: fix end of scan buggy exit when compiled with USE_PTHREAD/-lpthread
- backend/pixma_mp150.c, doc/descriptions/pixma.desc, doc/sane-pixma.man:
change support to complete for MP990 in documentation, as reported by Jean-Michel Pouré.
* Pixma backend (pixma.c/pixma_common.c/pixma_io_sanei.c/pixma_bjnp.c)
bjnp tcp connection is now de-activated after initialization and
re-activated at start of scanning. If we do not do this, the scanner
closes its side of the connection after 30 secods of inactivity.
Added a maximum to the retry of slect calls when signals are
received
Added blocksize detection for tcp read_bulk call