Wykres commitów

442 Commity (dd9d90223e7c4581bac36f458c073fd2ff8e43ae)

Autor SHA1 Wiadomość Data
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
Olaf Meeuwissen 445b5bd7e1
Drop use of obsoleted autoconf AC_HEADER_STDC macro. Fixes #409
Use of the STDC_HEADER pre-processor macro that the autoconf macro
used to define has been removed.  Conditionalized code is now used
unconditionally.  This should be fine as the macro checks for ANSI
C, i.e. C89 (ISO C90), compliant headers.  We already require C99.
2021-01-01 16:02:52 +09:00
Povilas Kanapickas e9d2cdf67b sanei_usb: Allow backends to modify when USB recording is cleared 2020-12-26 16:01:04 +02:00
Peter Marschall 2ad63d4e1e spelling fixes for sane core 2020-08-29 09:18:04 +02:00
Olaf Meeuwissen bfab54e391 Merge branch 'release/1.0.31' into 'master'
Release/1.0.31

See merge request sane-project/backends!514
2020-08-24 09:19:44 +00:00
pobrn 45f84a569c respect 'local_only' parameter of sane_get_devices()
Certain backends do network scans even if the 'local_only'
parameter for 'sane_get_devices()' is true. Fix that.

Changes:

1. Modify 'sanei_configure_attach()' so that backend specific
   data may be passed to the 'attach()' function.

2. Use this in certain backends to pass the value of the
   'local_only' parameter so that network related activities
   are only carried out when the value is false.
2020-08-12 12:29:38 +02:00
Oliver Schwartz d65d121e6d Use SANEI_ALLOW_UNCONFIGURED_DEVICES macro to skip test of unconfigured devices instead of platform test. 2020-08-08 09:55:47 +00:00
Michael Cronenworth 9793d4f64e MinGW build fixes
- Fix define check on S_IFSOCK, looked like a typo
- Need a define check around syslog usage
- libdll_preload already has sanei_usb symbols and linking fails with
  duplicate symbol errors if this is left in
2020-06-19 09:34:27 -05:00
Ralph Little 6bb87fdf1f sanei: added missing include file stdint.h 2020-06-14 08:09:44 -07:00
Olaf Meeuwissen bfea8a1a82 Merge branch 'master' into 'release/1.0.30'
# Conflicts:
#   NEWS
2020-05-18 12:08:28 +00:00
Olaf Meeuwissen 8682023faa sanei_tcp: Address possible integer overflow. Re #279, issue 8 2020-05-04 11:54:35 +09:00
Oliver Schwartz 867aeb7d09 Merge branch 'master' into 'master'
sanei_usb: allow non-configured devices on macOS for libusb-1.x

See merge request sane-project/backends!358
2020-04-23 14:13:27 +00:00
Rolf Bensch c47e1c0bd5 sanei_usb: don't read data from timeouted interrupt 2020-03-31 20:01:10 +02:00
Povilas Kanapickas 2fe8e63597 Merge branch 'sanei-usb-record-replay-descriptor' into 'master'
sanei_usb: Add support for record/replay of get descriptor calls

See merge request sane-project/backends!381
2020-03-31 17:55:02 +00:00
Povilas Kanapickas d6d3c0566f Merge branch 'sanei-usb-record-replay-multiple-open' into 'master'
sanei_usb: Support recording conversations within multiple open-close calls

See merge request sane-project/backends!380
2020-03-31 10:03:01 +00:00
Povilas Kanapickas d6fa866818 sanei_usb: Add support for record/replay of get descriptor calls 2020-03-28 22:48:38 +02:00
Povilas Kanapickas 77886e6387 sanei_usb: Return correct error code in replay code path 2020-03-28 22:21:19 +02:00
Povilas Kanapickas 770b204702 sanei_usb: Support devices that are being opened multiple times 2020-03-28 22:13:44 +02:00
Povilas Kanapickas 7d97a1aaf4 sanei_usb: Reset all testing data on exit 2020-03-28 22:13:44 +02:00
Povilas Kanapickas 62614a4660 sanei_usb: Use internal linkage for private static variables 2020-03-28 22:13:44 +02:00
Povilas Kanapickas 45dfd889e6 sanei_usb: Indent the configuration section in recorded xml 2020-03-28 22:12:11 +02:00
Ralph Little 7a86b487bd sanei: corrected fd validity check, which always used to fail. 2020-03-20 19:28:56 -07:00
Brandon Beck c88ba0dff2 Allow unconfigured USB scanners on macOS.
Based on findings from Oliver Schwartz (https://alioth-lists.debian.net/pipermail/sane-devel/2012-June/029890.html)
this change allows USB scanners to be unconfigured on macOS.  This fixes
the issue of scanners being unable to be discovered because they look
to be not configured but end up getting configured later.
2020-03-15 18:39:40 -05:00
Rolf Bensch 738444cd1c add µsec to timestamp 2019-11-26 20:12:23 +01:00
Rolf Bensch d9f35d1b5e add timestamp to debug outputs 2019-11-26 16:32:47 +01:00
Olaf Meeuwissen 0e4a2d107a Merge branch 'hh' into 'master'
uClibc-ng fixes

See merge request sane-project/backends!198
2019-10-06 02:47:36 +00:00
Povilas Kanapickas 6b3ba8af8a sanei_usb: Fix memory leak in USB testing mode 2019-10-05 02:25:34 +03:00
Rosen Penev fc699d2bf5
treewide: Replace bzero with memset
bzero was removed in POSIX 2008. It is optionally unavailable with
uClibc-ng.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-03 11:47:50 -07:00
Rosen Penev 428bec49bf
sanei_scsi: Replace bcopy with memcpy
bcopy was deprecated in POSIX 2008 and is optionally unavailable with
uClibc-ng.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-03 11:47:50 -07:00
Rosen Penev c320a72e32
treewide: Replace mktemp by mkstemp
mktemp has been removed in POSIX 2008. uClibc-ng optionally does not make
it available.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-03 11:47:49 -07:00
Olaf Meeuwissen e00d5462de Fix libusb related [-Werror=deprecated-declarations] warnings
See http://libusb.sourceforge.net/api-1.0/group__libusb__lib.html
2019-09-28 17:46:22 +09:00
Povilas Kanapickas 0290a26394 sanei_usb: Optimize bulk USB transfers in testing mode 2019-09-27 23:19:52 +03:00
Olaf Meeuwissen 8539f350fd sanei_wire: Fix sanei_w_void function signature
This function needs to have the same number of arguments as any other
functions passed to sanei_w_array() via its w_element argument, i.e.
sanei_w_char and sanei_w_word, in the w_option_value() implementation
in sanei/sanei_net.c.

Fixes [-Werror=cast-function-type] compiler warning.
2019-09-24 21:22:13 +09:00
Povilas Kanapickas c69e22eb76 sanei_usb: Fix uninitialized device struct in USB testing code 2019-09-21 18:42:56 +03:00
Povilas Kanapickas f2ce27f441 sanei_usb: Fix build when USB support is disabled 2019-09-10 00:39:08 +03:00
Povilas Kanapickas d2653efbd9 sanei_usb: Add a way to record debug messages to USB captures 2019-08-08 20:52:23 +03:00
Povilas Kanapickas aa6bdba74d genesys: Add a way to record debug messages to USB captures 2019-08-08 20:33:49 +03:00
Povilas Kanapickas 599bfe519c sanei_usb: Fix build when USB replay-record mode is disabled 2019-06-16 21:12:42 +03:00
Povilas Kanapickas 4edfb7a287 sanei_usb: Add function to check whether we are using fake data 2019-06-16 20:46:46 +03:00
Povilas Kanapickas fd6adf2a46 sanei_usb: Don't crash when recording failed reads 2019-06-16 20:46:46 +03:00
Povilas Kanapickas b30406873c sanei_usb: Add support for record testing mode 2019-06-16 20:46:46 +03:00
Povilas Kanapickas 7de8efd395 sanei_usb: Add support for "development mode" replay testing 2019-06-16 20:46:46 +03:00
Povilas Kanapickas 0122c060b7 sanei_usb: Add support for replay testing 2019-06-16 20:46:46 +03:00
Povilas Kanapickas a88b6241cd configure: Add option to enable USB record-replay 2019-06-16 20:46:39 +03:00
Povilas Kanapickas ac624433bb sanei: Print the number of read bytes on bulk USB read error 2019-06-02 11:47:57 +03:00
Olaf Meeuwissen f9eb32317a Merge branch 'sanei-usb-testing-mode-prep' into 'master'
sanei: Preparation to support capture and replay of USB data for testing

See merge request sane-project/backends!74
2019-06-15 05:43:06 +00:00
Povilas Kanapickas 1c3e1aa184 autotools: Remove files generated by autotools from version control 2019-06-01 14:38:36 +03:00
Povilas Kanapickas 0b5ab0b5e4 sanei_usb: Fall through to the end of sanei_usb_get_descriptor() 2019-05-27 18:56:01 +03:00
Povilas Kanapickas 422e083175 sanei_usb: Fall through the end in sanei_usb_control_msg() 2019-05-27 18:56:01 +03:00
Povilas Kanapickas d865705ef1 sanei_usb: Don't change input size variable in USBCALLS bulk code paths 2019-05-27 18:56:01 +03:00