Commit Graph

12051 Commits

Author SHA1 Message Date
Marcus Meissner
12ce4ce163 only free objectinfo when we got a new one, https://github.com/gphoto/gphoto2/issues/493 2022-03-20 11:17:59 +01:00
Marcus Meissner
0715318cf8 fixed another memory corruption
fixes https://github.com/gphoto/libgphoto2/issues/774
2022-03-10 16:55:02 +01:00
Marcus Meissner
30de5cf650 start 2.5.29.1 development 2022-03-05 14:42:29 +01:00
Marcus Meissner
1691f4705c 2.5.29 release v2.5.29 libgphoto2-2_5_29-release 2022-03-05 14:11:50 +01:00
Marcus Meissner
4bf39024c9 rename the m531 new id... seems to be a dup otherwise 2022-03-05 13:44:41 +01:00
Marcus Meissner
260b764f01 ssync from libmtp 2022-03-05 13:41:14 +01:00
Marcus Meissner
92c81f75a8 updated NEWS 2022-03-05 13:23:17 +01:00
Marcus Meissner
340b0c8d65 added kodak m531 2022-02-28 17:29:51 +01:00
Мирослав Николић
eae7b66853 Updated serbian 2022-02-17 10:47:41 +01:00
Marcus Meissner
e7d1b1e208 we need to copy over objectinfo, as oi.Storage is used... https://github.com/gphoto/libgphoto2/issues/770 2022-02-12 16:14:39 +01:00
Alexandr Shevchenko
ae1b23a013 merge from libmtp 2022-01-31 10:52:26 +01:00
Marcus Meissner
1bb8d8e9dc added sony dsc-w830 debug 2022-01-31 09:40:44 +01:00
Marcus Meissner
59bcb27a50 warning fixes for recent panasonic commit 2022-01-23 17:12:49 +01:00
Marcus Meissner
fca76c5bd7 sony fnumber needs to return the current setting even if not in list 2022-01-23 17:12:49 +01:00
Hans Ulrich Niedermann
6d7ed0ea21 Work around github workflow issue with presenting stderr 2022-01-23 16:18:33 +01:00
Hans Ulrich Niedermann
919671c89b CI: build automake based example project
Add automake based example project using libgphoto2 to have
the CI builds ensure that building a libgphoto2 frontend
with this libgphoto2 is possible.
2022-01-23 15:41:05 +01:00
Hans Ulrich Niedermann
bd5aec38d1 pc files: Fix gphoto2 builds, avoid builds with wrong headers
In the *.pc files, use a C preprocessor include path both with
and without the gphoto2/ path component:

    Cflags: -I${includedir} -I${includedir}/gphoto2

This allows both the preferred way to include gphoto2 headers

    #include <gphoto2/gphoto2.h>
    #include <gphoto2/gphoto2-camera.h>

and also the early 2000s legacy way (still in use by kamera and
others because we did not properly communicate and enforce that
back when we were still stabilizing the API)

    #include <gphoto2.h>
    #include <gphoto2-camera.h>

to produce builds with the libgphoto2 headers actually corresponding
to the *.pc files in use.

Any other option for the *.pc file Cflags either produces
unintended build failures or builds which use the wrong header
files (the `-I${includedir}/gphoto2` option), or breaks the
`#include <...>` part of the libgphoto2 API from the early 2000s
still in use by kamera and others (the `-I${includedir}` option).

For details, see https://github.com/gphoto/libgphoto2/issues/717 and
https://github.com/gphoto/libgphoto2/issues/717#issuecomment-1018040615

Fixes: https://github.com/gphoto/libgphoto2/issues/717
2022-01-22 17:47:01 +01:00
Hans Ulrich Niedermann
3fa40feb46 pragma away the warnings for GNU style initializer designators
Use #pragma to allow GNU style range designators in the
camlibs/pentax/js0n.c state machine table initializers.
2022-01-22 16:38:42 +01:00
Hans Ulrich Niedermann
6cbdd744b8 Allow clang compile with initializer overrides
This catches clang in a clang specific C preprocessor conditional
before clang gets a chance to mess up at pretending to be gcc.

The camlibs/pentax/js0n.c state machine tables use a lot of both
GNU style range designators [ a ... b ], and later overrides some
of the values in the range. This is not very pure C, but relatively
effient to code, so we can accept silencing some warnings here.

Fixes: https://github.com/gphoto/libgphoto2/issues/761
2022-01-22 16:38:42 +01:00
Marcus Meissner
12676bbb86 added hp photosmart e331 2022-01-22 16:01:05 +01:00
Yuri Kozlov
01afde1d64 updated russian 2022-01-22 15:47:50 +01:00
Marcus Meissner
1c0520f9de added NULL ptr check to property case 2022-01-22 13:36:40 +01:00
Marcus Meissner
7b1e9fd865 updated news 2022-01-21 14:24:37 +01:00
Marcus Meissner
0310c50d09 free objectinfo only if we got and objectinfo (OK reply) , fixes https://github.com/gphoto/gphoto2/issues/480 2022-01-19 14:12:04 +01:00
Marcus Meissner
dd8ef92154 add some safety measures to get config 2022-01-18 17:19:01 +01:00
Bart H. Plague
fac2ae7aa2 Added PTP support for Panasonic BGH1 2022-01-18 10:36:29 +01:00
Marcus Meissner
4602672a02 added nikon d6 as reported 2022-01-12 17:05:03 +01:00
Marcus Meissner
a86ec8b174 added romanian 2022-01-10 10:52:18 +01:00
Remus-Gabriel Chelu
bfdedb5c91 added new romanian translation 2022-01-10 10:51:38 +01:00
Marcus Meissner
d873d06c8a added zv-e10 to default wait on start
https://github.com/gphoto/gphoto2/issues/477
2022-01-10 09:54:50 +01:00
Marcus Meissner
2eba60b62b merge a fix from mingw for ssize_t double definition 2022-01-10 09:54:50 +01:00
Hans Ulrich Niedermann
613b007859 configure: Allow --with-jpeg=yes argument again
Allow the --with-jpeg=yes configure argument again. This
was broken by commit ea00220b6f.

The GP_LIBJPEG macro in the configure script now handles the following cases:

  --with-jpeg=no
  --without-jpeg
    Do not use libjpeg. Do not autodetect it either.

  --with-jpeg
  --with-jpeg=yes
    Autodetect libjpeg. If not found, abort.

  <no argument given>
  --with-jpeg=auto
  --with-jpeg=autodetect
    Autodetect libjpeg. If found, use it.

However, it does *NOT* handle

  --with-jpeg=/path/to/somewhere

at this time. Set LIBJPEG_CFLAGS and/or LIBJPEG_LIBS
instead to specify which libjpeg to compile with and
link against.

This mostly matches the behaviour from before commit
ea00220b6f, which was

  --with-jpeg=no
  --without-jpeg
    Do not use libjpeg. Do not autodetect it either.

  --with-jpeg
  --with-jpeg=yes
  --with-jpeg=<any value other than "no">
    Autodetect libjpeg. If found, use it. Otherwise, silently
    ignore the user's wish to build with libjpeg.

  <no argument given>
    Autodetect libjpeg. If found, use it.

If someone is running configure with --with-jpeg=yes and
libjpeg cannot be used, we can assume that building without
using libjpeg is not the outcome the user expects.

Fixes:  https://github.com/gphoto/libgphoto2/issues/759
Closes: https://github.com/gphoto/libgphoto2/pull/760
2022-01-10 05:33:19 +01:00
Hans Ulrich Niedermann
5af863a47e gitignore: add gp-gettext-setup.mk files
Have git ignore the gp-gettext-setup.mk files which
commit d18b440a72
added to the list of files being generated during
builds.
2022-01-10 00:50:27 +01:00
Hans Ulrich Niedermann
4c7ca1a222 gitignore: Fix pattern for .vscode/ directories
The vscode documentation[1] says that the editor use a directory
named ".vscode", not "+.vscode".

".vscode" is also what the original commit[2] in pull request 100[3]
contained.

However, commit e9fafcd89d
probably contained a cut and paste error and added the
ignore pattern for directories called "+.vscode".

  [1]: https://code.visualstudio.com/docs/editor/workspaces
  [2]: d8ff05da8c
  [3]: https://github.com/gphoto/libgphoto2/pull/100
2022-01-10 00:46:56 +01:00
Miloš Komarčević
2cc7f01553 Fix lumix linking on mingw 2022-01-07 09:32:59 +01:00
Marcus Meissner
4a62cf6237 translation updates 2022-01-06 11:33:49 +01:00
Jakub Bogusz
972e46f5c2 updated polish 2022-01-06 11:33:29 +01:00
Yuri Chornoivan
019bdfa3c7 updated ukrainian 2022-01-04 16:23:19 +01:00
Yuri Chornoivan
b9b32e101d updated ukramniasn 2022-01-04 16:22:41 +01:00
Marcus Meissner
282991b6d7 add notificaiton of rtanslation project 2022-01-03 17:35:37 +01:00
Marcus Meissner
48643b86de switch to 2.5.28.1 development 2022-01-03 12:08:57 +01:00
Marcus Meissner
7ac02fa09a 2.5.28 release v2.5.28 libgphoto2-2_5_28-release 2022-01-03 11:57:09 +01:00
Marcus Meissner
07a2176e11 keep canon eos remotemode=1 on exit, to keep the display on
https://github.com/gphoto/gphoto2/issues/465
2022-01-03 10:30:12 +01:00
Marcus Meissner
a829e5088d added more NEWS 2021-12-29 16:24:16 +01:00
Marcus Meissner
8c2ee45f8d sync from libmtp 2021-12-29 16:08:33 +01:00
Marcus Meissner
1bcb968969 fix camera name, fixes https://github.com/gphoto/libgphoto2/issues/754 2021-12-27 13:36:07 +01:00
Marcus Meissner
2df30adbc0 adjust hex id to have 4 digits, fixes https://github.com/gphoto/libgphoto2/issues/753 2021-12-20 11:05:54 +01:00
Hans Ulrich Niedermann
35bdaf146c Verbose gettext domain consistency checks
Make the gettext domain consistency checks more verbose to help
debugging https://github.com/gphoto/libgphoto2/issues/751.
2021-12-16 23:12:49 +01:00
Hans Ulrich Niedermann
d65a7211d4 Add test-i18n.c i18n test program 2021-12-12 16:35:48 +01:00
Hans Ulrich Niedermann
397ae74674 Add pull-translations target
Add pull-translations target to make it easier to pull translations
from the Translation Project:

    make pull-translations
2021-12-12 16:35:47 +01:00