summaryrefslogtreecommitdiff
path: root/camlibs/barbie
Commit message (Collapse)AuthorAgeFilesLines
* camlib build var cleanupHans Ulrich Niedermann2022-09-011-7/+13
| | | | | | | | | | | | | | | 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/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* 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
* Add <unistd.h> to files which use usleep()Daniel P. Berrange2014-06-041-0/+1
| | | | | | | | | | | | | | The usleep() function is defined to be provided by unistd.h. On Linux this is pulled in indirectly so the missing includes don't cause build problems, but on Mingw32 the explicit include of unistd.h is required. Since sleep() is not available on Mingw32, #define it to usleep(). Remove some _POSIX_C_SOURCE macros which restricted code to 1993 POSIX standard which blocks use of usleep(). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14997 67ed7778-7388-44ab-90cf-0a291f65f57c
* Remove mostly unused GP_SYSTEM_SLEEP macroDaniel P. Berrange2014-06-041-1/+1
| | | | | | | | | | | The GP_SYSTEM_SLEEP macro is only used in a small portion of the codebase. Replace it with normal POSIX sleep/usleep function calls. Signed-off-by: Daniel P. Berrange <dan@berrange.com> git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14996 67ed7778-7388-44ab-90cf-0a291f65f57c
* updated fsf addressMarcus Meissner2014-01-011-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14608 67ed7778-7388-44ab-90cf-0a291f65f57c
* avoid leaking s or tMarcus Meissner2013-05-011-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14373 67ed7778-7388-44ab-90cf-0a291f65f57c
* add some _BSD_SOURCE or _POSIX_C_SOURCE where neededMarcus Meissner2013-02-201-0/+2
| | | | | | | for strict -ansi or MacOS X build git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14245 67ed7778-7388-44ab-90cf-0a291f65f57c
* gop_file_set_name not needed hereMarcus Meissner2009-02-151-2/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11806 67ed7778-7388-44ab-90cf-0a291f65f57c
* rewrote a bit to better avoid all the signedness issuesMarcus Meissner2009-02-142-124/+111
| | | | | | | and be a bit more clear. still above 400 lines of code ;) git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11800 67ed7778-7388-44ab-90cf-0a291f65f57c
* extra dist changelogMarcus Meissner2008-10-191-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11442 67ed7778-7388-44ab-90cf-0a291f65f57c
* more gone .cvsignore filesMarcus Meissner2008-09-261-8/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11350 67ed7778-7388-44ab-90cf-0a291f65f57c
* added lgpl boilerplate, plus authors. guessing it wasMarcus Meissner2008-05-151-0/+23
| | | | | | | done in 2000. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11138 67ed7778-7388-44ab-90cf-0a291f65f57c
* some more cleanups. removed printf()Marcus Meissner2007-05-241-52/+36
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10299 67ed7778-7388-44ab-90cf-0a291f65f57c
* extracted Protocol.txt from barbie.hMarcus Meissner2007-05-245-248/+227
| | | | | | | merged library.c and barbie.h into barbie.c git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10298 67ed7778-7388-44ab-90cf-0a291f65f57c
* * main.c: Removed.Marcus Meissner2007-05-245-130/+50
| | | | | | | | | | * library.c: Reworked Bayer array decoding. Use global bayer routines. * library.c, barbie.c: Largish clean up. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10297 67ed7778-7388-44ab-90cf-0a291f65f57c
* made packet_1 const (and in both files), to reduce relocsMarcus Meissner2007-05-162-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10224 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed library.h (merged)Marcus Meissner2007-04-062-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10070 67ed7778-7388-44ab-90cf-0a291f65f57c
* small fixesMarcus Meissner2007-01-021-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9837 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2.3.1.0.trunk, non-recursive camlibs buildHans Ulrich Niedermann2006-12-262-9/+10
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9736 67ed7778-7388-44ab-90cf-0a291f65f57c
* 1 var, 1 function staticMarcus Meissner2006-12-042-3/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9503 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibdoc_data gone tooMarcus Meissner2006-11-291-2/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9479 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed old stand alone stuff.Marcus Meissner2006-11-293-8/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9478 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-24/+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-282-2/+2
| | | | | | | | | | 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
* added some statics to some functions, removedMarcus Meissner2006-03-193-18/+13
| | | | | | | | some unused ones. use gp_fs_set_funcs() git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8636 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
* * fixed format string issues.Marcus Meissner2004-08-231-2/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7303 67ed7778-7388-44ab-90cf-0a291f65f57c
* <config.h> -> "config.h"Arnaud Launay2002-11-292-2/+2
| | | | 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-231-1/+1
| | | | 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
* * **/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
* 2002-01-16 Lutz M�ller <lutz@users.sourceforge.net>Lutz Mueller2002-01-152-11/+17
| | | | | | | | | 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-121-11/+3
| | | | | | | | | | | | | | | | Finished the GPContext stuff - changes all over the place. Basically, gp_[file,camera]_progress has been replaced by gp_context_progress_*. Well, we haven't release a gphoto2-2.0 yet, therefore I hope you don't mind the API change... * libgphoto2/gphoto2-camera.[c,h]: Added a GPContext parameter to any function that can possibly communicate with the camera. That makes every function cancellable (which is good), makes it possible to report multiple errors during execution of a command, offers several (nested) progress reports, and many other goodies. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3841 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2002-01-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2002-01-101-3/+4
| | | | | | | | | | | | * libgphoto2/gphoto2-filesys.[c,h]: Add a GPContext to all functions that potentially access the camera. This makes cancelling of all operations possible and improves error reporting. * tests/test-filesys.c: * libgphoto2/gphoto2-camera.c: * camlibs: Adjust to reflect above changes git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3798 67ed7778-7388-44ab-90cf-0a291f65f57c
* Removed redundant memset()s introduced by me :-(Hans Ulrich Niedermann2002-01-021-3/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3649 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2002-01-02 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2002-01-021-1/+1
| | | | | | | | | * libgphoto2/Makefile.am * camlibs/ * /Makefile.am: Install drivers into versioned subdirectories. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3648 67ed7778-7388-44ab-90cf-0a291f65f57c
* Added missing initialization of CameraAbilities struct. This fixes corruptHans Ulrich Niedermann2002-01-021-0/+1
| | | | | | | abilities reported to libphoto2. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3642 67ed7778-7388-44ab-90cf-0a291f65f57c
* Zero out the CameraAbilities struct so we don't have garbage in fieldsJohannes Erdfelt2001-12-301-0/+1
| | | | | | | | This should help fix some of the problems with the new USB class matching code people have reported git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3628 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2001-12-07 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2001-12-071-6/+2
| | | | | | | | * configure.in: Remove dotlib hack * camlibs: Do it "the right way" git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3422 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2001-12-05 Lutz M�ller <urc8@rz.uni-karlsruhe.de>Lutz Mueller2001-12-051-1/+3
| | | | | | | $builddir != $srcdir fixes. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3402 67ed7778-7388-44ab-90cf-0a291f65f57c
* If we check for 'ENABLE_NLS', we need to include <config.h>.Marcus Meissner2001-11-031-1/+2
| | | | | | | | Fix 'redefinition of _' compile warnings due to broken copy & pasted macro in the camlibs. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2892 67ed7778-7388-44ab-90cf-0a291f65f57c
* Added -module flag to libtool link command for each library that is dlopen'edDan Fandrich2001-10-311-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2876 67ed7778-7388-44ab-90cf-0a291f65f57c
* moved from gp_port_settings_[sg]et to gp_port_[sg]et_settingsHans Ulrich Niedermann2001-10-271-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2816 67ed7778-7388-44ab-90cf-0a291f65f57c