summaryrefslogtreecommitdiff
path: root/camlibs/jd11
Commit message (Collapse)AuthorAgeFilesLines
* serial: Add check after malloc allocation (#878)Li kunyu2022-12-151-0/+6
|
* Zero-fill CameraFileInfo (#838)Ingvar Stepanyan2022-09-261-0/+1
| | | | | | | I've noticed in my tests that for many files the CameraFileInfo incorrectly had `info.audio` marked as available (with various flags). Thanks to valgrind I found that it's because `CameraFileInfo` is zero-filled in some places, but not others, so the `audio.fields` (as well as entire `audio`) was filled with uninitialized data. I tried to find all usages of `info.file.fields = ...` and `info.preview.fields = ...` and zero-initialize them in the same way as it already is in other places.
* camlib build var cleanupHans Ulrich Niedermann2022-09-011-10/+17
| | | | | | | | | | | | | | | Consistently use the same notation and formatting for all camlib Makefile-files, which uses * common $(camlib_cflags) * common $(camlib_cppflags) * common $(camlib_dependencies) * common $(camlib_ldflags) * common $(camlib_libadd) and then groups additional related definitions together, making it obvious when e.g. bar_la_LIBADD adds FOO_LIBS but bar_la_CPPFLAGS forgot to add FOO_CFLAGS.
* Factor out i18n stuff into separate i18n.h filesHans Ulrich Niedermann2021-10-252-31/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor out the i18n definitions into i18n.h include files: One include file each for libgphoto2 and for libgphoto2_port. This removes the complete #ifdef ENABLE_NLS # include <libintl.h> # undef _ # define _(String) dgettext (GETTEXT_PACKAGE, String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define _(String) (String) # define N_(String) (String) #endif block (which in some occasions defines even more macros) and replaces it with a single line #include "libgphoto2/i18n.h" for camlibs and libgphoto2 itself and with #include "libgphoto2_port/i18n.h" for iolibs and libgphoto2_port itself. This gives us two central locations to change the defintions.
* Avoid accidental include file name collisionsHans Ulrich Niedermann2021-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are five libgphoto2 internal *.h include files inside the source tree's `libgphoto2/` folder. Internal means they are part of the libgphoto2 implementation, and are not part of the public libgphoto2 API or ABI. These files have names which are so generic that it is difficult to see from a `#include` statement that the included file is actually part of libgphoto2: bayer-types.h bayer.h exif.h gamma.h jpeg.h While building, an additional file is created inside the `libgphoto2/` folder with a name which does hint to its relationship with libgphoto2: gphoto2-endian.h To reduce the probability of accidental conflicts with include files which might also be called the same very generic name, this changes the use of these include files to a preprocessor directive like #include "libgphoto2/bayer.h> instead of #include "bayer.h" To enforce the need for the "libgphoto2/" part in the #include preprocessor directive, this also removes the respective `-I` arguments for the `libgphoto2` subdir (both in source tree and in build tree) from `*_CPPFLAGS`. This change was inspired by `libgphoto2/` and `camlibs/stv0680/` containing very different include files both called `bayer.h`.
* utf-8: change xml/html from iso-8859-1 to utf-8Hans Ulrich Niedermann2021-10-091-3/+3
|
* utf-8: Convert ISO-8859 text to UTF-8Hans Ulrich Niedermann2021-10-091-1/+1
| | | | | | | Convert the easy ISO-8859 text to UTF-8. The difficult ISO-8859 text will will be eliminated by future commits.
* Use consistently named non-reserved CPP macros for header filesHans Ulrich Niedermann2021-10-052-6/+8
| | | | | | | | | | | | | | | | | | | | | | | C preprocessor macros beginning/ending with underscores are reserved for system use as well as macros containing a double underscore anywhere, so application software macros are supposed to be named differently. For a header file gphoto2-abilities-list.h, this consistently uses a macro name LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H for the usual #ifndef LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H #define LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H ... content of the header file ... #endif /* !defined(LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H) */ Found using "clang -Weverything". This should work, unless when run with an ancient C preprocessor which might only the first 8 or 10 characters to distinguish macro names and ignores the remainder of the name.
* Fix jd11 camlib compilation warnings.Siim Meerits2020-08-031-1/+2
| | | | Resolves a signed-unsigned compare issue.
* Remove trailing whitespace from all *.h and *.c files.Siim Meerits2020-07-275-40/+40
|
* Fix typos throughout the codebaseSijawusz Pur Rahnama2020-05-251-2/+2
|
* Fix minor typosYuri Chornoivan2020-05-251-1/+1
|
* BSD_SOURCE -> DEFAULT_SPURCEMarcus Meissner2018-06-201-1/+1
|
* avoid superflous gp_widget_set_changedMarcus Meissner2016-11-201-1/+0
|
* Adjust the semantics of gp_widget_changed to not clear the changed state.Marcus Meissner2016-11-201-4/+5
| | | | | | | Adjust the camlibs that use it (As this is mostly a internal function it should be ok to change.) Fixes https://github.com/gphoto/libgphoto2/issues/73
* Help editors treat as Makefiles all our Makefile-files filesHans Ulrich Niedermann2016-10-281-0/+2
|
* remove probably unistd.h include , or protected by ifdef forMarcus Meissner2016-01-032-2/+0
| | | | | | building better with Visual C https://github.com/gphoto/libgphoto2/issues/33
* free lastline and lineMarcus Meissner2014-07-011-0/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15048 67ed7778-7388-44ab-90cf-0a291f65f57c
* free indexbuf in exit edges (Coverity)Marcus Meissner2014-06-301-1/+6
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15039 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed copyright umlauts and replaced other umlautsMarcus Meissner2014-06-275-5/+5
| | | | | | | by international spelling git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15027 67ed7778-7388-44ab-90cf-0a291f65f57c
* revert the row filler, as we have more of a zig-zag pattern otherwiseMarcus Meissner2014-01-061-3/+4
| | | | | | | use enhanced bayering git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14671 67ed7778-7388-44ab-90cf-0a291f65f57c
* updated fsf addressMarcus Meissner2014-01-015-10/+10
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14608 67ed7778-7388-44ab-90cf-0a291f65f57c
* use correct sizeof() (Coverity)Marcus Meissner2013-06-281-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14462 67ed7778-7388-44ab-90cf-0a291f65f57c
* added _BSD_SOURCE for snprintfMarcus Meissner2013-02-201-0/+3
| | | | | | | | | | | | | | | -- Diese und die folgenden Zeilean werden ignoriert -- M camlibs/jd11/serial.c M camlibs/hp215/hp215.c M camlibs/jl2005c/jl2005bcd_decompress.c M camlibs/jl2005c/jl2005c.c M camlibs/gsmart300/library.c M camlibs/gsmart300/gsmart300.c M camlibs/iclick/library.c git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14247 67ed7778-7388-44ab-90cf-0a291f65f57c
* Batch commit from weekend work:Marcus Meissner2009-02-164-15/+13
| | | | | | | | | | | | | | - removed "type" from CameraFile handling: - all put_file functions and hooks get "type" as argument now - added type to the set_file_info_noop call - started removal of "name" from CameraFile - generate new filename from original filename + camerafile type + mimetype - new gp_camera_autodetect() helper function - adapted all drivers. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11818 67ed7778-7388-44ab-90cf-0a291f65f57c
* * removed CameraFileInfoFile.name, adjusted usersMarcus Meissner2009-01-251-2/+2
| | | | | | | | | | and callers. * added filename argument to put_file_func, set_info_noop and set_file_noop functions. adjusted all camlibs git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11773 67ed7778-7388-44ab-90cf-0a291f65f57c
* no longer do info.name stuffMarcus Meissner2009-01-101-2/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11682 67ed7778-7388-44ab-90cf-0a291f65f57c
* added ChangeLog and other not yet distributed filesMarcus Meissner2008-10-191-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11448 67ed7778-7388-44ab-90cf-0a291f65f57c
* more gone .cvsignore filesMarcus Meissner2008-09-261-6/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11350 67ed7778-7388-44ab-90cf-0a291f65f57c
* added missing free() in error exit path (CID 67)Marcus Meissner2007-05-081-1/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10128 67ed7778-7388-44ab-90cf-0a291f65f57c
* added some gp_file_free () in error exit paths (CID 68)Marcus Meissner2007-05-081-2/+9
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10127 67ed7778-7388-44ab-90cf-0a291f65f57c
* replaced sizeof(line) by sizeof(int)*width in memset(). (CID 35)Marcus Meissner2007-05-081-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10124 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2.3.1.0.trunk, non-recursive camlibs buildHans Ulrich Niedermann2006-12-262-9/+11
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9736 67ed7778-7388-44ab-90cf-0a291f65f57c
* Consistently use #include <gphoto2/gphoto2-foo.h> everywhere.Hans Ulrich Niedermann2006-09-283-6/+6
| | | | | | | | | | This moves the header files to a new subdirectory gphoto2 in both libgphoto2 and libphoto2_port/libgphoto2. All references are adapted appropriately. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9221 67ed7778-7388-44ab-90cf-0a291f65f57c
* use gp_fs_set_funcs()Marcus Meissner2006-03-191-6/+8
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8626 67ed7778-7388-44ab-90cf-0a291f65f57c
* add *.sym file to _DEPENDENCIESHans Ulrich Niedermann2006-01-031-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8401 67ed7778-7388-44ab-90cf-0a291f65f57c
* build camlibs as libtool modules with simple names and symbol listHans Ulrich Niedermann2005-06-111-4/+5
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8065 67ed7778-7388-44ab-90cf-0a291f65f57c
* remove redundant INCLUDE = definitions from Makefile.amHans Ulrich Niedermann2005-04-141-5/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7830 67ed7778-7388-44ab-90cf-0a291f65f57c
* * jd11.c: Added widget names.Marcus Meissner2005-01-022-2/+12
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7461 67ed7778-7388-44ab-90cf-0a291f65f57c
* Added colons for new Manufacturer:Model notationMichael Rensing2003-01-101-7/+7
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6037 67ed7778-7388-44ab-90cf-0a291f65f57c
* replace (c) and (C) by �Arnaud Launay2002-12-155-5/+5
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5969 67ed7778-7388-44ab-90cf-0a291f65f57c
* <config.h> -> "config.h"Arnaud Launay2002-11-293-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5859 67ed7778-7388-44ab-90cf-0a291f65f57c
* gettext stuff for ArnaudHans Ulrich Niedermann2002-11-232-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5776 67ed7778-7388-44ab-90cf-0a291f65f57c
* moved definition of camlibdir to configure.inHans Ulrich Niedermann2002-11-061-1/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5547 67ed7778-7388-44ab-90cf-0a291f65f57c
* - modify config.h locationArnaud Launay2002-09-141-0/+1
| | | | | | | - add intl dir in include dirs git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5277 67ed7778-7388-44ab-90cf-0a291f65f57c
* * serial.c,jd11.c: Handle return values of gp_port_write better.Marcus Meissner2002-08-013-5/+9
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4963 67ed7778-7388-44ab-90cf-0a291f65f57c
* * jd11.c, serial.c: Changed image/pnm to correct GP_MIME_PNM, soMarcus Meissner2002-04-123-2/+6
| | | | | | | konqueror displays it again. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4414 67ed7778-7388-44ab-90cf-0a291f65f57c
* * jd11.c, serial.[ch]:Marcus Meissner2002-04-084-110/+115
| | | | | | | | | | Use the _noop filesystem functions to store the thumbnail data we retrieve on getting the number of pictures in the camera, major speedup for downloading thumbnails. Provide file info for frontends who use them. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4404 67ed7778-7388-44ab-90cf-0a291f65f57c
* * **/Makefile.am: Do not use $(prefix)/lib/, but $(libdir).Marcus Meissner2002-01-251-1/+1
| | | | | | | | On some architecturs $(libdir) might not be /lib/, but /lib64/ (on s390x for instance). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4010 67ed7778-7388-44ab-90cf-0a291f65f57c
* * The Praktica QD500 is equivalent to the JD11 (see URL inMarcus Meissner2002-01-131-0/+4
| | | | | | | | comment). (Probably renamed after they renamed Praktica to Jenoptik). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3847 67ed7778-7388-44ab-90cf-0a291f65f57c