summaryrefslogtreecommitdiff
path: root/camlibs/sonydscf1
Commit message (Collapse)AuthorAgeFilesLines
* 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-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.
* 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-3/+9
| | | | | | | | | | | | | | | | | | | | | | | 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.
* replace buggy strncat usage by just strcat. we have enough buffer spaceMarcus Meissner2018-07-211-3/+3
|
* incremented various buffers for sprintf %0*d usage to removeMarcus Meissner2018-06-241-3/+3
| | | | | gcc warnings. Fixed strcat incorrect 3rd argument
* fixed more bugsMarcus Meissner2016-11-201-7/+7
|
* fixed gp_log callsMarcus Meissner2016-11-201-4/+4
|
* remove DEBUG ifdefs, use gp_log()Marcus Meissner2016-11-191-18/+6
|
* Help editors treat as Makefiles all our Makefile-files filesHans Ulrich Niedermann2016-10-281-0/+2
|
* use the approach used by the msys2 porterMarcus Meissner2016-10-211-7/+10
|
* build in DEBUG modeMarcus Meissner2016-10-211-9/+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
* added copyright headersMarcus Meissner2015-02-224-0/+92
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15368 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-1/+1
| | | | | | | | | Fixes to misc functions to address char * vs unsigned char * sign mis-matches, by adding casts to silence the compiler. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14902 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-112-11/+11
| | | | | | | | | | | Many callers of strcpy/scanf/strcmp 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@14901 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-3/+3
| | | | | | | | | | 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-13/+13
| | | | | | | | | | 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
* From: "Daniel P. Berrange" <berrange@redhat.com>Marcus Meissner2014-04-112-6/+3
| | | | | | | | | | A great many functions have variables which are set to some value, but never read thereafter. All these variables can be removed with no functional impact. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14896 67ed7778-7388-44ab-90cf-0a291f65f57c
* fixed LIBADDMarcus Meissner2013-03-101-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14271 67ed7778-7388-44ab-90cf-0a291f65f57c
* added #define _BSD_SOURCE for ansi like buildsMarcus Meissner2013-02-201-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14248 67ed7778-7388-44ab-90cf-0a291f65f57c
* Eliminated some compiler warnings, fixing a couple of smallDan Fandrich2010-07-111-0/+2
| | | | | | | bugs in the process. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13144 67ed7778-7388-44ab-90cf-0a291f65f57c
* Batch commit from weekend work:Marcus Meissner2009-02-161-2/+1
| | | | | | | | | | | | | | - 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
* u_short -> unsigned shortMarcus Meissner2008-10-221-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11475 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
* u_long -> unsigned long (another fix for MacOSx)Marcus Meissner2008-09-013-7/+7
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11300 67ed7778-7388-44ab-90cf-0a291f65f57c
* u_char -> unsigned charMarcus Meissner2008-05-154-46/+50
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11141 67ed7778-7388-44ab-90cf-0a291f65f57c
* removedMarcus Meissner2007-11-171-8/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10876 67ed7778-7388-44ab-90cf-0a291f65f57c
* more cleanups, merged common.hMarcus Meissner2007-11-174-16/+17
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10875 67ed7778-7388-44ab-90cf-0a291f65f57c
* progress context handling, moved CameraFile* handling down intoMarcus Meissner2007-11-174-71/+53
| | | | | | | the get functions git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10874 67ed7778-7388-44ab-90cf-0a291f65f57c
* -verbose flag for stdoutMarcus Meissner2007-11-163-10/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10873 67ed7778-7388-44ab-90cf-0a291f65f57c
* merged delete_picture into delete_file_funcMarcus Meissner2007-11-161-36/+17
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10872 67ed7778-7388-44ab-90cf-0a291f65f57c
* merged chotplay.c into sonydscf1.c, more cleanupsMarcus Meissner2007-11-165-508/+458
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10871 67ed7778-7388-44ab-90cf-0a291f65f57c
* remove sonydscf1.h (dup of common.h)Marcus Meissner2007-11-164-13/+4
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10870 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed todoMarcus Meissner2007-11-161-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10869 67ed7778-7388-44ab-90cf-0a291f65f57c
* more updates, removed 1 empty fileMarcus Meissner2007-11-165-20/+17
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10868 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed getuint.[ch], replaced 1 place of usage by direct code.Marcus Meissner2007-11-164-29/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10867 67ed7778-7388-44ab-90cf-0a291f65f57c
* major cleanupsMarcus Meissner2007-11-166-216/+79
| | | | | | | -L and -P work now. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10866 67ed7778-7388-44ab-90cf-0a291f65f57c
* unbreak F1fopen and F1finfo. return error status from rbyte, passMarcus Meissner2007-11-161-22/+21
| | | | | | | u_char* as argument. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10865 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed no longer necessary fileMarcus Meissner2007-08-112-208/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10574 67ed7778-7388-44ab-90cf-0a291f65f57c
* only handle JPEG, return otherwise (CID 15)Marcus Meissner2007-05-111-13/+15
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10191 67ed7778-7388-44ab-90cf-0a291f65f57c
* added some missing error checks (CID 20) (CID 21)Marcus Meissner2007-05-111-1/+7
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10183 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2.3.1.0.trunk, non-recursive camlibs buildHans Ulrich Niedermann2006-12-262-14/+15
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9736 67ed7778-7388-44ab-90cf-0a291f65f57c
* (char)NULL -> 0Marcus Meissner2006-11-201-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9440 67ed7778-7388-44ab-90cf-0a291f65f57c
* pass port around to avoid storing it globally.Marcus Meissner2006-11-196-223/+171
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9429 67ed7778-7388-44ab-90cf-0a291f65f57c
* errno is no variable necessary... just include <errno.h>.Marcus Meissner2006-10-221-2/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9369 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlib README files: rename, ship in dist tarball, install as docHans Ulrich Niedermann2006-10-072-1/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9296 67ed7778-7388-44ab-90cf-0a291f65f57c
* Remove all OS/2 specific build files.Hans Ulrich Niedermann2006-10-063-27/+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-3/+3
| | | | | | | | | | 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