added functions sanei_thread_sendsig() and sanei_thread_get_status()
changed behaviour of sanei_thread_waitpid(), changed parameters
of sanei_thread_begin()
pthread support after all the tests. If libpthread isn't available, try if libc
supports pthreead_*. Use macro USE_PTHREAD to check if threads are used in the
code.
pthread support, added switch --enable-fork-process which toggles
between the usage of fork and pthread, set the default behaviour to
pthread usage on Darwin
* include/sane/config.h: added the HAVE_LIBPTHRAD stuff
* sanei/sanei_thread.c include/sane/sanei_thread.h: fixed compilation issue
on OS/2, added support for fork too, so that we can use sanei_thread
functions in any case.
* backend/plustek.[ch]: changes due to the sanei_thread-lib work
added linker option -lpthread if pthread.h is found
* include/sane/config.in.h: added HAVE_PTHREAD_H
* sanei/sanei_thread.c include/sane/sanei_thread.h: added pthread_
functions to library, so every backend is able to use either fork or
pthread for its reader-process - see plustek backend for example
* backend/plustek.h backend/plustek.c: added sanei_thread stuff to support
threading on MacOS X
* backend/plustek_pp*: some cleanup
(patch from Malcolm Parsons <malcolm.parsons@virgin.net>)
* configure.in configure include/sane/config.h.in: added detection of
machine/cpufunc.h and i386_set_ioperm() for FreeBSD support.
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>.
* include/sane/sanei_pa4s2.h, sanei/sanei_pa4s2.c: New sanei_pa4s2
version supporting both raw IO and libieee1284. If you don't
have libieee1284 installed, you need to enable raw IO when
running configure
/** Initiate a interrupt transfer read.
*
* Read up to size bytes from the interrupt endpoint from the device to
* buffer. After the read, size contains the number of bytes actually read.
*
* @param dn device number
* @param buffer buffer to store read data in
* @param size size of the data
*
* @return
* - SANE_STATUS_GOOD - on succes
* - SANE_STATUS_EOF - if zero bytes have been read
* - SANE_STATUS_IO_ERROR - if an error occured during the read
* - SANE_STATUS_INVAL - on every other error
*
*/
keep similar tests in one group. Moved more complicated tests to
acinclude.m4. Added explicit test for build and host system type. When
checking for programs, used $EXEEXT (hopefully fixes OS/2 gettext
misdetection). Removed obsolete macros. Removed PTAL check. Used autoconf for
asm/io.h check. Shortened --enable-foo output and formatted it
correctly. Translations were installed even if --disable-translations was
set. Don't test for msgcat anymore. Tell why translations aren't
installed. Used autoconf 2.5 syntax for AC_OUTPUT and AC_CONFIG_FILES. Make
sane-config executable. Print flags and installation directories near the end
of configure output.
usb_find_busses only once. Make sure that already opened devices aren't opened
again. Exit libusb scan loop if one device is found. Make error values more
expressive. Check for missing config descriptors before using them to avoid
segfaults.
Henning Meier-Geinitz <henning@meier-geinitz.de>
location. Also print the filename of the installed file, not only the
path. Both changes are mostly for package creators/maintainers.
Henning Meier-Geinitz <henning@meier-geinitz.de>
removed unused definitions in include/sane/saneopts.h:
SMEAR, TEN_BIT_MODE, TWELVE_BIT_MODE, RGB_PREVIEW_PATCH,
START_SCAN_PATCH
Added note about the file saneopts.h:
/* This file defines several option NAMEs, TITLEs and DESCs
that are (or should be) used by several backends.
All well known options should be listed here. But this does
not mean that all options that are listed here are well known options.
To find out if an option is a well known option and how well known
options have to be defined please take a look at the sane standard!!!
*/
converter used in many scanners (patch from from Marcio Luis Teixeira
<marciot@holly.colostate.edu>). Fixed sanei_thread Makefile.in entry.
Henning Meier-Geinitz <henning@meier-geinitz.de>
* backend/agfafogus.c: Moved PATH_MAX after sanei_backend.h include
to avoid warning. Changed printf to DBG.
* backend/mustek.c backend/mustek.CHANGES backend/mustek.desc: Added
support for translating options. Used only PACKAGE_VERSION for
output. Updated email address. New version: 1.0-107.
* include/sane/sanei_backend.h include/sane/saneopts.h: Added macro
SANE_I18N. It's used to mark strings that can be translated and
used by a frontend. Usually these are option titles and descriptions
as well as the contents of string lists. Used this macro to mark
the translatable strings in saneopts.h. More translation support
will follow.
* README: Updated xsane link.
* configure configure.in backend/dll.c backend/dll.desc
backend/net.c backend/net.desc include/sane/config.h.in
Yet another change in the version system for dll and net.
For sane_init return the version of the package but use
own internal version number in the source (printed with
debugging enabled) and in *.desc. The internal versions
of both net and dll are set to 1.0.1. Please increase the
build number with every change on the source files.
* doc/realeases.txt -> doc/releases.txt. Fixed spelling error.
Added entries about sane-backends.html, sane.ps, man pages,
platforms page.
* backend/mustek.c backend/mustek.desc backend/mustek.CHANGES
Added detection of the TA for the Paragon 1200 SP Pro. Added
warning about not supported Trust scanners. Changed description
of contarst and brightness settings. Backend status is "stable"
now. New version: 1.0-106.
* acinclude.m4 aclocal.m4: Fixed comment concerning dc240.
* configure configure.in include/sane/config.h.in: Added test for
socklen_t in sys/socket.h. This fixes the compilation problem on
Irix.
* doc/sane-avision.man doc/sane-ricoh.man doc/sane-s9036.man
doc/sane-tamarack.man: find-scanner is now called
sane-find-scanner and installed on the system so it's not
necessary to point to the tools directory.
* frontend/scanimage.c: Fixed too long line in output.
* sane-config.in: Name is sane-config again (was sane-backends-config
due to the renaming of the package).
* TODO: Removed entry about net.c not compiling on Irix and
references to find-scanner in the man pages. Updated numbers of
the compilation warnings. Still too many, however.
* NEWS: Added date of release.
* TODO: Removed entries about PATH_MAX, sanei_scsi_find_devices, and
shm.h. Added entry about the necessity to check HAVE_SYS_SHM_H.
* configure configure.in include/sane/config.h.in: Default to
--enable-warnings again. Don't set "-ansi" for OS/2. Test for
sys/shm.h.
* backend/GUIDE: Moved to doc/backend-writing.txt.
* doc/backend-writing.txt: New file (moved from backend/GUIDE).
Added comments about sanei-backend.h and PATH_MAX.
* include/sane/sanei_backend.h: Added define for PATH_MAX (if
necessary).
* sanei/sanei_scsi.c: Implemented sanei_scsi_find_devices for FreeBSD
(from ports@FreeBSD.org).
* tools/Makefile.in: Use INSTALL_SCRIPT instead of INSTALL_PROGRAM for
sane-config (from ports@FreeBSD.org).
* configure configure.in acinclude.m4 aclocal.m4
include/sane/config.h.in: Added test for PTAL library and headers
(patch from David Paschal <paschal@rcsis.co>). Some reformating of
the output of configure --help.
* backend/GUIDE: Updated entry about #include.
* lib/md5.c include/md5.h: added md5 functions from GNU textutils
* include/sane/sanei_auth.h sanei/sanei_auth.c: implemented new
SANE interface for user authorization using MD5 digest
* configure configure.in: Added test for /dev/urandom and
index() in string.h or strings.h
* backend/net.c: Fixed SANE_NET_AUTHORIZE call handling
* doc/net.tex: Clarified definition of SANE_NET_AUTHORIZE, added
definition of MD5 authorization
* doc/sane.tex: Upgraded to version 1.0.2, changed definition of
SANE_MAX_USERNAME_LEN & SANE_MAX_PASSWORD_LEN to 128 chars
* doc/saned.man: added description of SANE_CONFIG_DIR/saned.users
* doc/scanimage.man: added description of ~/.sane/pass and
--accept-md5-only
* frontend/saned.c: implemented user authorization on a per backend
basis
* frontend/scanimage.c: fixed bug (option -b wasn't present)
implemented auth_callback
* include/sane/sane.h: changed definition of SANE_MAX_USERNAME_LEN &
SANE_MAX_PASSWORD_LEN to 128 chars
* lib/Makefile.in sanei/Makefile.in: updated Makefiles
* backend/agfafogus.c: Moved PATH_MAX after sanei_backend.h include
to avoid warning. Changed printf to DBG.
* backend/mustek.c backend/mustek.CHANGES backend/mustek.desc: Added
support for translating options. Used only PACKAGE_VERSION for
output. Updated email address. New version: 1.0-107.
* include/sane/sanei_backend.h include/sane/saneopts.h: Added macro
SANE_I18N. It's used to mark strings that can be translated and
used by a frontend. Usually these are option titles and descriptions
as well as the contents of string lists. Used this macro to mark
the translatable strings in saneopts.h. More translation support
will follow.
* NEWS: Added date of release.
* TODO: Removed entries about PATH_MAX, sanei_scsi_find_devices, and
shm.h. Added entry about the necessity to check HAVE_SYS_SHM_H.
* configure configure.in include/sane/config.h.in: Default to
--enable-warnings again. Don't set "-ansi" for OS/2. Test for
sys/shm.h.
* backend/GUIDE: Moved to doc/backend-writing.txt.
* doc/backend-writing.txt: New file (moved from backend/GUIDE).
Added comments about sanei-backend.h and PATH_MAX.
* include/sane/sanei_backend.h: Added define for PATH_MAX (if
necessary).
* sanei/sanei_scsi.c: Implemented sanei_scsi_find_devices for FreeBSD
(from ports@FreeBSD.org).
* tools/Makefile.in: Use INSTALL_SCRIPT instead of INSTALL_PROGRAM for
sane-config (from ports@FreeBSD.org).
* lib/md5.c include/md5.h: added md5 functions from GNU textutils
* include/sane/sanei_auth.h sanei/sanei_auth.c: implemented new
SANE interface for user authorization using MD5 digest