Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Define main function as "int main(void)" (with void) | Hans Ulrich Niedermann | 2022-11-11 | 1 | -1/+1 |
| | |||||
* | Fix `GP_UNKNOWN_EVENT` leaks in examples (#833) | Ingvar Stepanyan | 2022-09-21 | 3 | -0/+5 |
| | | | Most of the examples give wrong impression that `GP_UNKNOWN_EVENT` data does not need to be freed / is not heap allocated, however it's not the case - those messages are always `malloc`'d by corresponding drivers. | ||||
* | CI: build automake based example project | Hans Ulrich Niedermann | 2022-01-23 | 6 | -0/+95 |
| | | | | | | Add automake based example project using libgphoto2 to have the CI builds ensure that building a libgphoto2 frontend with this libgphoto2 is possible. | ||||
* | avoid crash on freed memory | Marcus Meissner | 2021-11-28 | 1 | -1/+3 |
| | |||||
* | examples: Force #include beginning with "libgphoto2/" | Hans Ulrich Niedermann | 2021-10-25 | 1 | -1/+1 |
| | |||||
* | example: include <unistd.h> for close(2), unlink(2), getpid(2) | Hans Ulrich Niedermann | 2021-10-25 | 1 | -0/+2 |
| | |||||
* | Use consistently named non-reserved CPP macros for header files | Hans Ulrich Niedermann | 2021-10-05 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | report file info | Marcus Meissner | 2021-10-03 | 1 | -3/+11 |
| | |||||
* | report only if flag set | Marcus Meissner | 2021-10-02 | 1 | -3/+3 |
| | |||||
* | report file info for debugging | Marcus Meissner | 2021-10-02 | 1 | -3/+10 |
| | |||||
* | better comments | Marcus Meissner | 2021-10-02 | 1 | -4/+5 |
| | |||||
* | use the proper word | Hans Ulrich Niedermann | 2021-09-30 | 1 | -1/+1 |
| | | | | | libraries are also binaries. What this comment talks about is executables (the stuff with main() functions). | ||||
* | added comment how to build fuzzer, and current problems | Marcus Meissner | 2021-09-28 | 2 | -12/+30 |
| | |||||
* | added sample-libfuzz ... semi-uable for libfuzzer | Marcus Meissner | 2021-09-27 | 2 | -39/+50 |
| | |||||
* | start a sample for libfuzz | Marcus Meissner | 2021-09-26 | 1 | -0/+283 |
| | |||||
* | remove memory leaks | Marcus Meissner | 2021-08-10 | 1 | -1/+7 |
| | |||||
* | Add _DARWIN_C_SOURCE to most files that use string.h (#615) | Rafał Hirsz | 2021-01-29 | 1 | -0/+1 |
| | | | This change makes it possible to build libgphoto2 on macOS. | ||||
* | Fix examples compilation warnings. | Siim Meerits | 2020-08-03 | 4 | -7/+6 |
| | | | | | | | * best-iso.c: Remove or comment out unused variables. * sample-afl.c: Remove or comment out unused variables. * sample-capture.c: Fix signed-unsigned compare issue. * sample-trigger-capture.c: Fix signed-unsigned compare issue. | ||||
* | Remove trailing whitespace from all *.h and *.c files. | Siim Meerits | 2020-07-27 | 11 | -17/+17 |
| | |||||
* | Revert "also test for usbscsi, usbdiskdirect and serial" | Marcus Meissner | 2020-05-26 | 1 | -98/+88 |
| | | | | | | This reverts commit dcb34f94e5a7e1cb6eb87b1751f126b0fc986828. (fixes travis) | ||||
* | Fix typos throughout the codebase | Sijawusz Pur Rahnama | 2020-05-25 | 2 | -2/+2 |
| | |||||
* | also test for usbscsi, usbdiskdirect and serial | Marcus Meissner | 2020-03-29 | 1 | -88/+98 |
| | |||||
* | examples: Remove unused TESTS= instance | Hans Ulrich Niedermann | 2020-02-18 | 1 | -82/+0 |
| | | | | | | | | Any TESTS definition causes "make check" to run a test suite, even if no tests are actually defined. So we remove the empty TESTS= from examples/Makefile.am, and keep on using the TESTS in the tests/Makefile.am file. | ||||
* | fix gp_file reference count usage, its a bit weird | Marcus Meissner | 2020-01-25 | 1 | -4/+4 |
| | |||||
* | let the sample-afl do autodetection to allow fuzzing all USB cameras | Marcus Meissner | 2019-04-23 | 1 | -6/+36 |
| | |||||
* | added unistd.h include for older systems | Marcus Meissner | 2019-03-09 | 1 | -0/+1 |
| | |||||
* | disable capture fuzzing | Marcus Meissner | 2019-01-20 | 1 | -0/+3 |
| | |||||
* | try more calls | Marcus Meissner | 2019-01-20 | 1 | -2/+65 |
| | |||||
* | unref the context in afl sample | Marcus Meissner | 2018-12-21 | 1 | -0/+1 |
| | |||||
* | c++ protect | Marcus Meissner | 2018-10-14 | 1 | -0/+8 |
| | |||||
* | free various event data | Marcus Meissner | 2018-04-16 | 5 | -0/+88 |
| | | | | added GP_EVENT_FILE_CHANGED | ||||
* | also log the domain | Marcus Meissner | 2017-07-31 | 1 | -1/+1 |
| | |||||
* | various fixes to free parameters and coverity issues | Marcus Meissner | 2017-06-05 | 1 | -23/+31 |
| | |||||
* | recursively list directories until the first file is found, | Marcus Meissner | 2017-04-29 | 1 | -14/+75 |
| | | | | retrieve information and MTP metadata | ||||
* | list folders and files too | Marcus Meissner | 2017-04-29 | 1 | -0/+19 |
| | |||||
* | add event handling to afl | Marcus Meissner | 2016-12-23 | 1 | -0/+9 |
| | |||||
* | wait_for_Event needs to be run multiple times to drain | Marcus Meissner | 2016-12-20 | 1 | -30/+43 |
| | | | | | the event queue better. otherwise e.g. Nikon DSLR will never get to the fileadded event. | ||||
* | adjusted code to handled errors and use buffer and file better | Marcus Meissner | 2016-12-20 | 1 | -9/+13 |
| | | | | fixes https://github.com/gphoto/libgphoto2/issues/118 | ||||
* | trigger capture: do not use file_read, api does not handle sdram capture ↵ | Marcus Meissner | 2016-12-18 | 1 | -29/+17 |
| | | | | currently ... :/ | ||||
* | do not use the signals in win32 | peterbud | 2016-11-20 | 1 | -8/+13 |
| | |||||
* | move gp_file_free up | Marcus Meissner | 2016-11-19 | 1 | -2/+2 |
| | |||||
* | add O_BINARY flag for open() calls to write images in binary mode on Windows | peterbud | 2016-11-19 | 8 | -9/+20 |
| | |||||
* | check for open return | Marcus Meissner | 2016-11-19 | 1 | -0/+3 |
| | |||||
* | fixed reading configuration | Marcus Meissner | 2016-10-11 | 1 | -3/+18 |
| | | | | better progress output | ||||
* | handle raw captures too | Marcus Meissner | 2016-10-11 | 1 | -3/+19 |
| | |||||
* | clear read_cofnig after reading | Marcus Meissner | 2016-10-11 | 1 | -0/+2 |
| | |||||
* | added configuration reading to photobooth sample | Marcus Meissner | 2016-10-11 | 2 | -2/+27 |
| | |||||
* | add event polling / tethering to sample photobooth | Marcus Meissner | 2016-10-11 | 1 | -0/+61 |
| | |||||
* | start a photobooth sample program | Marcus Meissner | 2016-10-10 | 2 | -0/+127 |
| | |||||
* | simplified using sample_open_camera | Marcus Meissner | 2016-09-25 | 2 | -58/+15 |
| |