summaryrefslogtreecommitdiff
path: root/camlibs/toshiba
Commit message (Collapse)AuthorAgeFilesLines
* camlib build var cleanupHans Ulrich Niedermann2022-09-011-10/+15
| | | | | | | | | | | | | | | 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-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Use consistently named non-reserved CPP macros for header filesHans Ulrich Niedermann2021-10-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | 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.
* reapply casting to remove warningsMarcus Meissner2020-08-311-5/+3
|
* remove casts again from last fix, it makes it less readableMarcus Meissner2020-08-271-2/+2
|
* Fix toshiba/pdrm11 camlib compilation warnings.Siim Meerits2020-08-271-4/+4
| | | | | * pdrm11_get_filenames(...): Variables 'i' and 'j' are switched to unsigned types. They are used in trivial 'for' loops where the comparisons are already unsigned. * pdrm11_get_file(...): Same as above for variable 'i'. Check 'gp_port_read' result by comparing it with 'GP_OK' before checking if 'size' count bytes was retrieved. This needed 'unsigned int' cast to suppress compiler warning.
* Remove trailing whitespace from all *.h and *.c files.Siim Meerits2020-07-273-26/+26
|
* avoid usleep during fuzzing (AFL)Marcus Meissner2020-02-011-0/+5
|
* 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-273-3/+3
| | | | | | | by international spelling git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15027 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-1/+1
| | | | | | | | | | 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-12/+12
| | | | | | | | | | 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
* use a more portable construct for stringificatinMarcus Meissner2014-02-231-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14788 67ed7778-7388-44ab-90cf-0a291f65f57c
* updated fsf addressMarcus Meissner2014-01-013-6/+6
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14608 67ed7778-7388-44ab-90cf-0a291f65f57c
* makefile.am here not longer neededMarcus Meissner2008-10-191-3/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11447 67ed7778-7388-44ab-90cf-0a291f65f57c
* more gone .cvsignore filesMarcus Meissner2008-09-262-15/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11350 67ed7778-7388-44ab-90cf-0a291f65f57c
* added missing free() on exit paths (CID 60)Marcus Meissner2007-05-112-2/+17
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10177 67ed7778-7388-44ab-90cf-0a291f65f57c
* remove unused variableHans Ulrich Niedermann2006-12-271-2/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9740 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2.3.1.0.trunk, non-recursive camlibs buildHans Ulrich Niedermann2006-12-262-10/+11
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9736 67ed7778-7388-44ab-90cf-0a291f65f57c
* 1 function static, 1 function if 0'edMarcus Meissner2006-12-042-10/+6
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9502 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
* camlib README files: rename, ship in dist tarball, install as docHans Ulrich Niedermann2006-10-072-0/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9296 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
* use gp_fs_set_funcs().Marcus Meissner2006-03-191-174/+10
| | | | | | | removed some empty functions. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8638 67ed7778-7388-44ab-90cf-0a291f65f57c
* ignore moreMarcus Meissner2006-01-121-2/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8470 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-6/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7830 67ed7778-7388-44ab-90cf-0a291f65f57c
* merge from 2.1.5 branchHubert Figuiere2004-12-161-0/+6
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7434 67ed7778-7388-44ab-90cf-0a291f65f57c
* revert deletion of driver pdrm11Hubert Figuiere2004-11-177-0/+705
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7388 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2004-11-17 Lutz Mueller <lutz@users.sourceforge.net>Lutz Mueller2004-11-178-711/+0
| | | | | | | | | * configure.in * camlibs/toshiba: Removed on request of Sean Bruno <sean.bruno@dsl-only.net> (camera is supported by sierra driver). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7386 67ed7778-7388-44ab-90cf-0a291f65f57c
* ignoreMarcus Meissner2004-08-231-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7295 67ed7778-7388-44ab-90cf-0a291f65f57c
* * fixed mismatch format string/argumentsMarcus Meissner2004-08-232-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7294 67ed7778-7388-44ab-90cf-0a291f65f57c
* Remove driver for Toshiba PDR-M65, it uses the Sierra protocol.Hans Ulrich Niedermann2004-08-027-708/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7265 67ed7778-7388-44ab-90cf-0a291f65f57c
* comment/doc reformattingHans Ulrich Niedermann2004-07-192-6/+8
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7260 67ed7778-7388-44ab-90cf-0a291f65f57c
* More work...too tired...must sleep...camera still not working.Sean Bruno2004-07-191-19/+17
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7259 67ed7778-7388-44ab-90cf-0a291f65f57c
* Removed accidental insertion of fstab entries...What was I up to there?Sean Bruno2004-07-191-4/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7258 67ed7778-7388-44ab-90cf-0a291f65f57c
* Discovered that the 64 byte packet from camera is the Exif II information ↵Sean Bruno2004-07-181-1/+2
| | | | | | for the JPEG to be retrieved. Updated to reflect this information git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7257 67ed7778-7388-44ab-90cf-0a291f65f57c
* Added DEFINE for JPEG_CHUNKSean Bruno2004-07-181-0/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7256 67ed7778-7388-44ab-90cf-0a291f65f57c
* Still working on Image Transfer. Successfully created an "almost" valid JPG.Sean Bruno2004-07-181-10/+31
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7255 67ed7778-7388-44ab-90cf-0a291f65f57c
* Continued work on retreiving images. Succesfully retreived data from ↵Sean Bruno2004-07-171-15/+86
| | | | | | camera, but application cannot determine end of file at this time, so it core's while executing --get-all-files. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7254 67ed7778-7388-44ab-90cf-0a291f65f57c
* Continue to add functions.Sean Bruno2004-07-171-1/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7253 67ed7778-7388-44ab-90cf-0a291f65f57c
* Added comment about 64byte header received between 30Kbyte image packets.Sean Bruno2004-07-171-1/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7252 67ed7778-7388-44ab-90cf-0a291f65f57c
* To tired to continue. --get-all-files core dumps retrieving picture #1. ↵Sean Bruno2004-07-171-2/+1
| | | | | | Need to look at how to determine end of file. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7251 67ed7778-7388-44ab-90cf-0a291f65f57c
* updated pdrm65_get_filenames to properly determine how many files the camera ↵Sean Bruno2004-07-171-3/+21
| | | | | | has. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7249 67ed7778-7388-44ab-90cf-0a291f65f57c
* Updated notes on proper negotiation.Sean Bruno2004-07-171-0/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7248 67ed7778-7388-44ab-90cf-0a291f65f57c
* Modified pdrm65_get_filenames to properly determine how many files are in ↵Sean Bruno2004-07-171-9/+7
| | | | | | the camera. Module still non-functional. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7247 67ed7778-7388-44ab-90cf-0a291f65f57c