summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Define main function as "int main(void)" (with void)Hans Ulrich Niedermann2022-11-111-1/+1
|
* Fix `GP_UNKNOWN_EVENT` leaks in examples (#833)Ingvar Stepanyan2022-09-213-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 projectHans Ulrich Niedermann2022-01-236-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 memoryMarcus Meissner2021-11-281-1/+3
|
* examples: Force #include beginning with "libgphoto2/"Hans Ulrich Niedermann2021-10-251-1/+1
|
* example: include <unistd.h> for close(2), unlink(2), getpid(2)Hans Ulrich Niedermann2021-10-251-0/+2
|
* Use consistently named non-reserved CPP macros for header filesHans Ulrich Niedermann2021-10-051-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 infoMarcus Meissner2021-10-031-3/+11
|
* report only if flag setMarcus Meissner2021-10-021-3/+3
|
* report file info for debuggingMarcus Meissner2021-10-021-3/+10
|
* better commentsMarcus Meissner2021-10-021-4/+5
|
* use the proper wordHans Ulrich Niedermann2021-09-301-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 problemsMarcus Meissner2021-09-282-12/+30
|
* added sample-libfuzz ... semi-uable for libfuzzerMarcus Meissner2021-09-272-39/+50
|
* start a sample for libfuzzMarcus Meissner2021-09-261-0/+283
|
* remove memory leaksMarcus Meissner2021-08-101-1/+7
|
* Add _DARWIN_C_SOURCE to most files that use string.h (#615)Rafał Hirsz2021-01-291-0/+1
| | | This change makes it possible to build libgphoto2 on macOS.
* Fix examples compilation warnings.Siim Meerits2020-08-034-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 Meerits2020-07-2711-17/+17
|
* Revert "also test for usbscsi, usbdiskdirect and serial"Marcus Meissner2020-05-261-98/+88
| | | | | | This reverts commit dcb34f94e5a7e1cb6eb87b1751f126b0fc986828. (fixes travis)
* Fix typos throughout the codebaseSijawusz Pur Rahnama2020-05-252-2/+2
|
* also test for usbscsi, usbdiskdirect and serialMarcus Meissner2020-03-291-88/+98
|
* examples: Remove unused TESTS= instanceHans Ulrich Niedermann2020-02-181-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 weirdMarcus Meissner2020-01-251-4/+4
|
* let the sample-afl do autodetection to allow fuzzing all USB camerasMarcus Meissner2019-04-231-6/+36
|
* added unistd.h include for older systemsMarcus Meissner2019-03-091-0/+1
|
* disable capture fuzzingMarcus Meissner2019-01-201-0/+3
|
* try more callsMarcus Meissner2019-01-201-2/+65
|
* unref the context in afl sampleMarcus Meissner2018-12-211-0/+1
|
* c++ protectMarcus Meissner2018-10-141-0/+8
|
* free various event dataMarcus Meissner2018-04-165-0/+88
| | | | added GP_EVENT_FILE_CHANGED
* also log the domainMarcus Meissner2017-07-311-1/+1
|
* various fixes to free parameters and coverity issuesMarcus Meissner2017-06-051-23/+31
|
* recursively list directories until the first file is found,Marcus Meissner2017-04-291-14/+75
| | | | retrieve information and MTP metadata
* list folders and files tooMarcus Meissner2017-04-291-0/+19
|
* add event handling to aflMarcus Meissner2016-12-231-0/+9
|
* wait_for_Event needs to be run multiple times to drainMarcus Meissner2016-12-201-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 betterMarcus Meissner2016-12-201-9/+13
| | | | fixes https://github.com/gphoto/libgphoto2/issues/118
* trigger capture: do not use file_read, api does not handle sdram capture ↵Marcus Meissner2016-12-181-29/+17
| | | | currently ... :/
* do not use the signals in win32peterbud2016-11-201-8/+13
|
* move gp_file_free upMarcus Meissner2016-11-191-2/+2
|
* add O_BINARY flag for open() calls to write images in binary mode on Windowspeterbud2016-11-198-9/+20
|
* check for open returnMarcus Meissner2016-11-191-0/+3
|
* fixed reading configurationMarcus Meissner2016-10-111-3/+18
| | | | better progress output
* handle raw captures tooMarcus Meissner2016-10-111-3/+19
|
* clear read_cofnig after readingMarcus Meissner2016-10-111-0/+2
|
* added configuration reading to photobooth sampleMarcus Meissner2016-10-112-2/+27
|
* add event polling / tethering to sample photoboothMarcus Meissner2016-10-111-0/+61
|
* start a photobooth sample programMarcus Meissner2016-10-102-0/+127
|
* simplified using sample_open_cameraMarcus Meissner2016-09-252-58/+15
|