Commit Graph

325 Commits

Author SHA1 Message Date
刘昊苏 d45a9da90f 修复usb内存释放奔溃问题,删除patch改为新增源码 Signed-off-by:liuhaosu@huawei.com
Signed-off-by: 刘昊苏 <liuhaosu@huawei.com>
2024-09-18 14:53:11 +08:00
刘昊苏 8168a60501 sane-backends新增config.h Signed-off-by:liuhaosu@huawei.com
Signed-off-by: 刘昊苏 <liuhaosu@huawei.com>
2024-07-11 20:43:36 +08:00
刘昊苏 d397f90d8c sane-backends新增hilog日志打印 Signed-off-by:liuhaosu@huawei.com
Signed-off-by: 刘昊苏 <liuhaosu@huawei.com>
2024-07-11 19:27:26 +08:00
Thierry HUCHARD d29273eb16 sanei: Remove no longer used code from sanei_backend.h 2021-12-15 22:39:43 +02:00
Thierry HUCHARD 0c2ca2b87b Factoring of umax_pp_low functions concerning sys/io.h to sanei lib 2021-12-15 22:39:25 +02:00
Olaf Meeuwissen 8ef4a858ae 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
Povilas Kanapickas bee114a4ef sanei_usb: Allow backends to modify when USB recording is cleared 2020-12-26 16:01:04 +02:00
Wolfram Sang fedb9e1930 saneopts: add entries for focus/autofocus
coolscan2 has focus entries already reused in coolscan3. Because I want
to add the same options to epson2, it makes sense to make them available
globally. Add i18n while here.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-09-26 16:48:51 +02:00
Peter Marschall 59252e1ca5 spelling fixes for sane core 2020-08-29 09:18:04 +02:00
pobrn 6c70f455ec 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
Olaf Meeuwissen cf4fb0a889 Merge branch 'master' into 'release/1.0.30'
# Conflicts:
#   NEWS
2020-05-18 12:08:28 +00:00
Olaf Meeuwissen a463ac24b0 sanei_tcp: Address possible integer overflow. Re #279, issue 8 2020-05-04 11:54:35 +09:00
Olaf Meeuwissen 80fd30120c Update references to the SANE standard
The authors have been added to SANE standard itself, pointers to the
standard now point to the published version and/or the project that
isnow used for its maintenance as appropriate.  References to input
files and installation locations have been removed.
2020-03-05 21:14:34 +09:00
Olaf Meeuwissen ab8c4e2234 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 23f428b3d5 Merge branch 'genesys-usb-capture-debug-msg' into 'master'
genesys: Add a way to record debug messages to USB captures

See merge request sane-project/backends!95
2019-08-08 17:49:06 +00:00
Povilas Kanapickas 5590fb0902 genesys: Add a way to record debug messages to USB captures 2019-08-08 20:33:49 +03:00
Ralph Little e0dbd1db6f Merge branch 'text_corrections' into 'master'
Some fixes to US messages in source.

See merge request sane-project/backends!91
2019-08-08 16:44:19 +00:00
Ralph Little fc01d21661 1) Correct some spelling mistakes
2) Convert some British spellings to US
3) Modified some longer sentences to improve readability.
4) Modified en_GB to suit
2019-08-05 20:54:18 -07:00
Povilas Kanapickas 92cb797dfc sanei_usb: Add function to check whether we are using fake data 2019-06-16 20:46:46 +03:00
Povilas Kanapickas 410633e6ac sanei_usb: Add support for record testing mode 2019-06-16 20:46:46 +03:00
Povilas Kanapickas 89b8d55aa0 sanei_usb: Add support for "development mode" replay testing 2019-06-16 20:46:46 +03:00
Povilas Kanapickas f8a2c7d285 sanei_usb: Add support for replay testing 2019-06-16 20:46:46 +03:00
Olaf Meeuwissen 9c812a0201 Add ignore patterns
These files were removed in 5cfb281ae4.
2019-06-08 12:36:06 +09:00
Olaf Meeuwissen 5cfb281ae4 Remove more generated files. Re !72 2019-06-02 21:33:22 +09:00
Povilas Kanapickas 5a90f3509c autotools: Remove files generated by autotools from version control 2019-06-01 14:38:36 +03:00
Olaf Meeuwissen 1b406a338a autofoo: Sync generated files
The AX_CXX_COMPILE_STDCXX* macros that were embedded in aclocal.m4
have been replaced with the versions found in the autoconf-archive
package from Debian 9.
2019-05-21 22:14:46 +09:00
Povilas Kanapickas d28d3f9361 sanei: Use C linkage for internal functions in C++ mode 2019-05-11 00:03:26 +03:00
Povilas Kanapickas 99def7fdd5 Update generated files 2019-05-11 00:03:26 +03:00
Povilas Kanapickas 924d3a5daf Run autoreconf and automake 2019-03-20 23:09:07 +02:00
Olaf Meeuwissen 3321a50847 autotools: Sync derived files
This was done by running

  libtoolize --copy
  autoreconf --force --install

on Debian GNU/Linux 9.3.
2018-03-17 10:35:57 +09:00
Olaf Meeuwissen cc1fd8b04b include/sane/sanei_ir.h: Adjust doc params to match code 2018-02-08 21:53:02 +09:00
Olaf Meeuwissen acaa6122c5 autofoo: Sync generated files 2017-07-15 22:52:00 +09:00
Olaf Meeuwissen be92e7aa12 autofoo: Sync generated files 2017-07-15 22:06:05 +09:00
Olaf Meeuwissen a9013aa3e8 autofoo: Sync generated files
This pulls in the changes from 8b9a293f and 7e855c22.
2017-07-15 17:17:21 +09:00
Olaf Meeuwissen cb7e0ebe31 SANE_Pid: Fix [-Wint-conversion] issues
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.
2017-07-15 14:47:54 +09:00
Olaf Meeuwissen b309ec25b6 .editorconfig: trim trailing blank lines 2017-05-29 21:14:30 +09:00
Olaf Meeuwissen 9faf64b6c8 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen 48d0efea7a gphoto2: fix libgphoto2 logging integration
In libgphoto2-2.5.0 (tagged for release on 2012-07-10) the GPLogFunc no
longer takes a va_list.  Instead, it passes a formatted message.
2016-09-04 14:39:52 +09:00
Olaf Meeuwissen 42ca5673b3 saned: fix [-Wunused-parameter] compiler warning
The `__sane_unused__` attribute has been moved from sanei_backend.h to
sanei.h to make it generally useful instead of limited to backends.
2016-09-04 12:50:19 +09:00
Olaf Meeuwissen e417723b82 Sync autofoo 2016-08-03 22:43:06 +09:00
Olaf Meeuwissen 54e0790cb3 Sync autofoo 2016-07-13 23:44:26 +09:00
Olaf Meeuwissen 462a327ab2 Sync autofoo 2016-07-10 21:54:24 +09:00
Olaf Meeuwissen 5ad96e0140 Sync autofoo 2016-07-01 23:45:43 +09:00
Olaf Meeuwissen e807125f91 Sync autofoo files 2016-06-29 22:15:06 +09:00
Olaf Meeuwissen 35303cd8ec Clean up .gitignore file content
Removes empty lines and duplicates (note that .gitignore patterns are
recursive unless anchored with a leading /).
2016-06-27 22:40:20 +09:00
Olaf Meeuwissen bd6f6e8dbc Stop distclean from removing files willy-nilly
The distclean target should only remove files that make creates.  If
there are any that need taking care of, they should be added in on a
per file basis in the Makefile.am that creates it.
2016-06-26 10:24:30 +09:00
Olaf Meeuwissen 18da9cc641 Sort .gitignore files 2016-06-26 10:24:30 +09:00
Olaf Meeuwissen fe720a8bb8 Sync derived files with previous changes 2016-06-26 10:24:29 +09:00
Olaf Meeuwissen 66417cc7a3 Sync derived files
This was done with

  AUTOMAKE="automake --add-missing --copy" autoreconf --force

on Debian GNU/Linux 8.5.
2016-06-14 06:30:48 +09:00
Olaf Meeuwissen cb9860f1f5 Sync derived files with autoreconf --force
For the record, this was done on Debian GNU/Linux 8.5.
2016-06-13 22:24:21 +09:00