summaryrefslogtreecommitdiff
path: root/camlibs/dimera
Commit message (Collapse)AuthorAgeFilesLines
* camlib build var cleanupHans Ulrich Niedermann2022-09-011-10/+18
| | | | | | | | | | | | | | | 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-251-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Convert ISO-8859 text to UTF-8Hans Ulrich Niedermann2021-10-091-3/+3
| | | | | | | 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/+7
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove stdint.h shim (#625)Zeranoe2021-02-222-2/+2
| | | stdint.h has wide adoption at this point, so it should be safe to use.
* Fix dimera camlib compilation warnings.Siim Meerits2020-08-313-3/+3
| | | | | * dimera3500.c: Fixes signed-unsigned comparison issue. Making 'x' and 'y' unsigned is safe from coordinate calculations and there would be segfault if 'x' or 'y' was negative. * mesalib.[c,h]: mesa_read(...) function can only return >= 0 numbers so change return type to resolve signed-unsigned comparison issues.
* Remove trailing whitespace from all *.h and *.c files.Siim Meerits2020-07-273-24/+24
|
* Fix typos throughout the codebaseSijawusz Pur Rahnama2020-05-251-1/+1
|
* Fix minor typosYuri Chornoivan2020-05-251-1/+1
|
* BSD_SOURCE -> DEFAULT_SPURCEMarcus Meissner2018-06-201-1/+1
|
* Adjust the semantics of gp_widget_changed to not clear the changed state.Marcus Meissner2016-11-201-0/+3
| | | | | | | 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-031-1/+0
| | | | | | building better with Visual C https://github.com/gphoto/libgphoto2/issues/33
* removed copyright umlauts and replaced other umlautsMarcus Meissner2014-06-272-2/+2
| | | | | | | by international spelling git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15027 67ed7778-7388-44ab-90cf-0a291f65f57c
* Remove 'ERROR' macro from dimera3500.cDaniel P. Berrange2014-06-041-14/+12
| | | | | | | | | | | The ERROR symbol already exists on Win32, so replace the ERROR macro in dimera3500.c with a direct call to gp_log, as is done in the rest of the codebase. Signed-off-by: Daniel P. Berrange <dan@berrange.com> git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14994 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-4/+4
| | | | | | | | | | Many calls of gp_file_* functions are passing a 'unsigned char *' rather than the 'char *' they expect. Add explicit casts to silence the compiler. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14900 67ed7778-7388-44ab-90cf-0a291f65f57c
* iFrom: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-4/+4
| | | | | | | | | | Many calls of gp_port_* functions are passing a 'unsigned char *' rather than the 'char *' they expect. Add explicit casts to silence the compiler. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14899 67ed7778-7388-44ab-90cf-0a291f65f57c
* added _BSD_SOURCE or _POSIX_C_SOURCE for -ansi buildingMarcus Meissner2013-02-201-0/+2
| | | | | | | replaced // comments with /* */ comments git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14246 67ed7778-7388-44ab-90cf-0a291f65f57c
* Batch commit from weekend work:Marcus Meissner2009-02-161-2/+0
| | | | | | | | | | | | | | - 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-5/+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
* added ChangeLog and TODO to EXTRA_DISTMarcus Meissner2008-10-191-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11445 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
* fixed strings to be translatedMarcus Meissner2007-08-111-12/+12
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10552 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2.3.1.0.trunk, non-recursive camlibs buildHans Ulrich Niedermann2006-12-262-13/+11
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9736 67ed7778-7388-44ab-90cf-0a291f65f57c
* moved interesting libgphoto2 APIs use to this driver, since they areMarcus Meissner2006-12-163-43/+122
| | | | | | | used only here. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9619 67ed7778-7388-44ab-90cf-0a291f65f57c
* Move header files one last time to reduce file path lengths in tarball.Hans Ulrich Niedermann2006-10-141-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9330 67ed7778-7388-44ab-90cf-0a291f65f57c
* Remove all OS/2 specific build files.Hans Ulrich Niedermann2006-10-063-25/+1
| | | | | | | | | | | | | | | | | * These files have not been updated for years. * They probably don't work any more. * OS/2 files are missing for most of the system. * gphoto2-port-portability-os2.h has been integrated into gphoto2-port-portability.h (I wanted to get rid of the longest filename) * usb-os2.c is still there in libgphoto2_port/usb. * If someone wants to revive the OS/2 port, they are welcome to start based on the stuff removed or from scratch. * Perhaps it might be easier to just use the present GNU make/libtool build chain than fabricating something with nmake. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9280 67ed7778-7388-44ab-90cf-0a291f65f57c
* Consistently use #include <gphoto2/gphoto2-foo.h> everywhere.Hans Ulrich Niedermann2006-09-283-4/+4
| | | | | | | | | | 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
* converted to fsfuncs.Marcus Meissner2006-03-311-5/+7
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8683 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-7/+8
| | | | 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-6/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7830 67ed7778-7388-44ab-90cf-0a291f65f57c
* * dimera35000.c: Driver Configuration should really be 'Camera Configuration'.Marcus Meissner2003-05-131-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6400 67ed7778-7388-44ab-90cf-0a291f65f57c
* * dimera3500.c: Made exposure and flash settings configurable.Dan Fandrich2003-01-143-20/+109
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6090 67ed7778-7388-44ab-90cf-0a291f65f57c
* Added colon for new Manufacturer:Model notationMichael Rensing2003-01-101-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6036 67ed7778-7388-44ab-90cf-0a291f65f57c
* replace (c) and (C) by �Arnaud Launay2002-12-152-2/+2
| | | | 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/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5859 67ed7778-7388-44ab-90cf-0a291f65f57c
* Id and Log tagsArnaud Launay2002-11-261-45/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5818 67ed7778-7388-44ab-90cf-0a291f65f57c
* deletes those boring $ and $ tagsArnaud Launay2002-11-231-140/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5789 67ed7778-7388-44ab-90cf-0a291f65f57c
* gettext stuff for ArnaudHans Ulrich Niedermann2002-11-231-1/+4
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5776 67ed7778-7388-44ab-90cf-0a291f65f57c
* * dimera3500.c: fixed 64bit problems (using long* to int*).Marcus Meissner2002-11-172-7/+14
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5623 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
* 2002-10-03 Lutz M�ller <lutz@users.sourceforge.net>Lutz Mueller2002-10-032-1/+6
| | | | | | | * Makefile.am: -I$(top_builddir)/libgphoto2 git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5347 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
* * **/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
* * TODO: changed note about temp.ppm and added one about multiple ops.Dan Fandrich2002-01-225-64/+88
| | | | | | | | | | | * mesalib.c: Check for error in mesa_modem_check. * mesalib.h: Added include files. * dimera3500.c: Put temp.ppm file permanently into file list. Fix percentage given to gp_file_progress. Simplified debugging macros. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3984 67ed7778-7388-44ab-90cf-0a291f65f57c
* Fix typo in dimera3500.c.Colin Marquardt2002-01-162-1/+8
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3922 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2002-01-16 Lutz M�ller <lutz@users.sourceforge.net>Lutz Mueller2002-01-152-12/+23
| | | | | | | | | Black magic by Marcus Meissner <marcus@jet.franken.de>: find . -type f | xargs grep -l gp_debug_printf | xargs perl -pi -e 's/gp_debug_printf\(\s*GP_DEBUG[^,]*,[^,]*,(.*)$/GP_DEBUG(\1/' git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3902 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2002-01-13 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2002-01-132-21/+30
| | | | | | | * dimera3500.c: Remove references to gp_camera_set_error. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3855 67ed7778-7388-44ab-90cf-0a291f65f57c