Files
libgphoto2/examples
Hans Ulrich Niedermann 0dbeaf7cbf Use consistently named non-reserved CPP macros for header files
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.
2021-10-05 16:07:20 +02:00
..
2013-09-01 11:14:36 +00:00
2020-08-03 08:50:12 +02:00
2018-04-16 19:25:28 +02:00
2021-08-10 16:28:04 +02:00
2014-12-06 11:42:00 +00:00
2021-10-03 14:54:05 +02:00
2021-10-02 12:02:18 +02:00
2014-07-22 06:30:49 +00:00
2021-10-02 13:26:40 +02:00

Sample snippets for programmatic camera usage.

This directory contains sample snippets for your C/C++ program accessing
cameras for various purposes.

Files with helper routines:
	autodetect.c: Auto detecting multiple cameras and initializing
	              specific cameras.

	config.c: Querying and setting configuration values.

	context.c: Handling of GPContext for error reporting and so on.

	samples.h: Header file for above helper files.

Files with samples:
	sample-autodetect.c: Simple camera autodetection and simple API
			     calls.

	sample-multi-detect.c: Same as above, but autodetect and use all
	                       cameras.

	sample-owner.c:	Gets or Sets the Camera Owner. Demonstrates string
			variable configuration handling.

	sample-capture.c: Minimalistic remote capture sample.

	sample-trigger-capture.c: New capture trigger and then loop example.

	lunkwill-canon-capture.c: A simple capture program that captures
	                          a single image, retrieves it to disk,
				  and removes it from the camera.
				  (Despite the Canon comments this likely
				   works on all capture cameras.)

	preview.c: A sample preview loop, it will get 100 previews in
			1 row as fast as possible. 


If you find a common thing to do missing, please report them (or do them
yourselves and send patches).

Please do not keep good sample code for yourself.

Marcus Meissner <marcus@jet.franken.de>