| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
This change makes it possible to build libgphoto2 on macOS.
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) introduce C_PARAMS and C_PARAMS_MSG along the lines of C_MEM
2) replace CHECK_NULL with C_PARAMS
3) replace the pattern
if ( something ) return GP_ERROR_BAD_PARAMETERS;
with
C_PARAMS ( !something );
I went over the whole patch again to check that each 'something'
condition is really inverted, so I dare to suggest you don't have to
do that again ;).
4) replaced CHECK_LIST and CHECK_INDEX_RANGE with simple one-line
C_PARAMS(...) expressions
5) a couple of hunks look like this
- if (!inet_aton (buffer, &inp)) {
- fprintf(stderr,"failed to scan for addr in %s\n", buffer);
- return GP_ERROR_BAD_PARAMETERS;
- }
+ C_PARAMS_MSG (inet_aton (buffer, &inp),
so some 'lost' error messages get now properly piped into the gp_log
mechanism.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15103 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
|
|
| |
3) use the fact that realloc() is defined to simply malloc if the
first param is NULL, no need to manually distinguish between first and
later allocations.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15098 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
|
| |
2) don't check the pointer for NULL before calling free(), because
free() checks it again.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15097 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
|
|
|
| |
here is a patch for (mostly) consistent usage of a generalized C_MEM
macro for checking the return values of memory allocating functions,
i.e. malloc, calloc, realloc and strdup. It is the C_MEM from
libusb1.c, moved to gphoto2-port-log.h.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15096 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
7, 8, 9) same 3,4,5 but for libgphoto core
3, 4) strictly replacing gp_log( GP_LOG_DEBUG/ERROR, ... with
GP_LOG_D/E in the libgphoto2 code. they are simple regex-replace
patches.
5) fix some whitespace issues caused by 3 and 4 and remove any _(...)
gettext macro usage for log messages
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15085 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14610 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13105 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12556 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
| |
Fixed a buffer overflow in the AOX driver.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12305 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12263 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12226 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12225 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12178 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11788 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10300 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
removed the literal (c) symbol.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8818 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
| |
should be a linked list or dynamic (will see when I find time).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8236 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
| |
buffer. return errors when the list is full.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7656 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5969 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5859 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
| |
* libgphoto2/gphoto2-widget.[c,h] (gp_widget_set_value): Make the
argument const.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5588 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
| |
* libgphoto2/gphoto2-widget.c: Size of CameraWidget->[labelname] is
now 256 instead of 32. Fixes long strings (esp. german translation).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4021 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
|
|
| |
More GPContext changes:
* libgphoto2/gphoto2-context.[c,h]: Add message functionality
* camlibs: Use it.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3886 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
| |
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2819 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
| |
* (Repository): s/retreiv/retriev/g
* de.po: Update.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2728 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
| |
* libgphoto2/gphoto2-result.[c,h]: Documented.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2513 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
|
|
|
|
|
|
| |
* include
* libgphoto2: More renaming in order to make gtk-doc happy.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2499 67ed7778-7388-44ab-90cf-0a291f65f57c
|
|
* include/gphoto2-widget.h
* include/gphoto2-filesys.h: Moved to ...
* libgphoto2/gphoto2-widget.h
* libgphoto2/gphoto2-filesys.h: ... here.
* libgphoto2/widget.c
* libgphoto2/filesys.c: Moved to ...
* libgphoto2/gphoto2-widget.c
* libgphoto2/gphoto2-widget.h: ... here.
* include/Makefile.am
* libgphoto2/Makefile.am: Updated.
* camlibs/.../Makefile.am: Updated to reflect changes above
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2496 67ed7778-7388-44ab-90cf-0a291f65f57c
|