Wolfram Sang
eb42ad08d5
treewide: use SANE_CURRENT_* macros consistently
...
Backends use a mixture of SANE_CURRENT_{MAJOR | MINOR} and V_{MAJOR |
MINOR} with all kind of permutations. I was confused by this and one
comment in pieusb.c tells me I was not alone. Some items in old
changelogs suggest to use the SANE_CURRENT_ macros in backends, so let's
switch to do that with the exception of net.c and dll.c. Done with:
$ find backend -name '*.[ch]' | xargs sed -i '/nearly every/ ! { s/\<V_M/SANE_CURRENT_M/g }'
$ git checkout backend/net.c backend/dll.c
And manually removing the comment from pieusb.c. Everything still builds
fine.
2021-06-08 19:01:41 +02:00
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
Mikolaj Kucharski
65f1131541
drop CVS keywords
2020-11-28 12:48:32 +00:00
Peter Marschall
f6059bd3cb
spelling fixes for gphoto2 backend
2020-08-29 09:18:04 +02:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +09:00
Jörg Frings-Fürst
e21bb28e50
Source code string typo fixes
2017-05-13 18:38:43 +09:00
Olaf Meeuwissen
50fa8efdcf
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
99c14f2d95
Use a single symbol to flag unused parameters
...
The __sane_unused__ symbol was used slightly more often then UNUSEDARG
and, more importantly, defined in include/sane/sanei_backend.h. That
makes it readily available to virtually all backends.
2016-07-18 16:51:08 +09:00
Olaf Meeuwissen
a97b1738df
gphoto2: fix [-Wunused-but-set-variable] compiler warning
2015-12-27 18:38:41 +09:00
chris@cnpbagwell.com
4d9e8138af
standardize including local sane/ include files.
...
Source code was inconsistent on how they were referencing
include files in include/sane. In certain cases, sane/sane.h
and sane/saneopts.h was really including external copies (with
some preprocessor implementations anyways).
2009-05-07 22:06:20 -05:00
m. allan noah
afc0dc6ed3
* acinclude.m4, backend/gphoto2.c, configure, include/sane/config.h.in:
...
deal with upcoming gphoto2 interface change (patch by Chris Bagwell)
* po/sane-backends.nl.po: updates from Martin Kho
2009-04-30 13:58:35 +00:00
m. allan noah
91598aa800
* backend/*.[ch]: nearly every backend used V_MAJOR
...
instead of SANE_CURRENT_MAJOR in sane_init()
* backend/snapscan.c: remove EXPECTED_VERSION check
since new SANE standard is forward compatible
2008-11-26 21:21:31 +00:00
Peter Fales
8e0b9f0e3c
Cosmetic changes to gphoto2 debug messages
2005-12-03 18:23:55 +00:00
Peter Fales
88df3af0bb
When no port is specified in the gphoto2.conf config file, an attempt
...
was being made to strdup() a bad pointer.
2005-05-05 03:52:03 +00:00
Peter Fales
dd4cdbdd9b
Handle the case where the camera has a corrupt file which is not a jpeg
...
image.
2003-10-02 04:03:40 +00:00
Peter Fales
aa9845ccd1
Move jpeg files to sanei
2003-07-26 17:07:36 +00:00
Peter Fales
bf413cce1c
Use Debug level 1 for library errors so that nothing is printed when no
...
camera is connected.
2003-07-02 22:09:52 +00:00
Peter Fales
fefaf27951
1) Don't coredump if gphoto2.conf file is missing. 2) Don't require
...
a speed to be set in gphoto2.conf if the serial port is not used.
2003-02-12 02:54:47 +00:00
Peter Fales
36ec9846ff
Disable "Low Res" option when snapping a new picture, because we don't
...
actually have the ability to change the resolution
2002-12-04 04:22:27 +00:00
Peter Fales
0a24458308
Improve checks for invalid parameters in config file
2002-10-25 02:16:40 +00:00
Peter Fales
fd3fa83a57
Update authors email address
2002-09-22 13:49:49 +00:00
Peter Fales
88e99b89de
Bug fixes identified by tstbackend
2002-04-27 03:57:12 +00:00
Peter Fales
8565da657b
Various minor bug fixes found by tstbackend
2002-04-23 14:06:07 +00:00
Peter Fales
ec45d7ae5a
Minor fixes to problems found by tstbackend
2002-03-17 12:57:38 +00:00
Peter Fales
e549f0ef44
* backend/gphoto2.c - Fixed a bug that can cause driver errors
...
following image capture, and bug that was incorrectly disabling
thumbail previews.
2002-01-20 05:31:06 +00:00
Peter Fales
6a924e4c1d
Cosmetic cleanup, and support for cameras that don't support image
...
capture or file deletion.
2002-01-19 02:06:40 +00:00
Peter Fales
052f806d77
various bug fixes
2002-01-18 03:52:20 +00:00
Peter Fales
44d3425fa9
convert gp_debug_printf to gp_log
2002-01-16 02:15:50 +00:00
Peter Fales
5f56702871
Don't require a port to be specified when using the "Directory Browse"
...
camera, and allow pictures larger than the "resolution" specified in
the config file.
2002-01-15 04:44:35 +00:00
Peter Fales
af52ccacd5
Fixed bug that can can cause backend to return more data than the
...
calculated image size
2002-01-15 04:04:38 +00:00
Peter Fales
f8caa92cf1
Change lack of image capture to a warning instead of an error so
...
"Directory Browse" camera can be used.
2002-01-15 02:34:40 +00:00
Peter Fales
63f0158864
Fix breakage due to gphoto2 API changes
2002-01-13 04:10:23 +00:00
Peter Fales
0b3a53ba38
debug print bug
2001-11-13 01:41:55 +00:00
Peter Fales
b7d4f77931
Fix capture image bug
2001-11-12 04:29:14 +00:00
Peter Fales
da66ce8066
Misc. bug fixes
2001-11-08 01:14:50 +00:00
Peter Fales
69e3ef41b3
Another small API fix
1994-10-29 06:03:05 +00:00
Peter Fales
078c0dba59
Change gphoto2 backend to match latest CVS chanages from gphoto2 libraries
1994-10-29 05:52:22 +00:00
Peter Fales
dab1963d4f
Minor cosmetic changes and changes to match gphoto2 API
2001-10-16 00:26:58 +00:00
Peter Fales
01cca8ef39
Minor bug fixes and cosmetic cleanup
2001-09-30 03:12:22 +00:00
Peter Fales
222a47fa6c
Cleanup and changes to support gphoto2 API changes
2001-09-25 00:33:07 +00:00
Peter Fales
ac0a181239
Converted to use actual camera API
2001-09-18 04:26:13 +00:00
Peter Fales
48e40937e3
Use gphoto2 headers and library functions for list management
2001-09-13 00:34:57 +00:00
Peter Fales
4174ca9ded
Various minor fixes
2001-09-10 23:11:17 +00:00
Peter Fales
663f405c1b
Initial version of gphoto2 backend
2001-09-07 02:40:21 +00:00