libgphoto2 photo camera library (libgphoto2) API 2.5.31
gphoto2-library.h
Go to the documentation of this file.
1
25#ifndef LIBGPHOTO2_GPHOTO2_LIBRARY_H
26#define LIBGPHOTO2_GPHOTO2_LIBRARY_H
27
30
31#ifdef __cplusplus
32extern "C" {
33#endif /* __cplusplus */
34
42typedef int (* CameraLibraryIdFunc) (CameraText *id);
43
52
65typedef int (* CameraLibraryInitFunc) (Camera *camera, GPContext *context);
66
67/*
68 * If you want to write a camera library, you need to implement
69 * the following three functions. Everything else should be declared
70 * as static.
71 */
72int camera_id (CameraText *id);
74int camera_init (Camera *camera, GPContext *context);
75
76#ifdef __cplusplus
77}
78#endif /* __cplusplus */
79
80#endif /* !defined(LIBGPHOTO2_GPHOTO2_LIBRARY_H) */
List of supported camera models including their abilities.
Implement Camera object representing a camera attached to the system.
int(* CameraLibraryIdFunc)(CameraText *id)
Returns a unique id for the camera driver.
Definition gphoto2-library.h:42
int camera_abilities(CameraAbilitiesList *list)
Get a list of abilities of all supported cameras.
Definition gphoto2-library.c:56
int(* CameraLibraryAbilitiesFunc)(CameraAbilitiesList *list)
Adds the abilities of the supported models to the supplied list.
Definition gphoto2-library.h:51
int camera_id(CameraText *id)
Get a unique camera id.
Definition gphoto2-library.c:38
int(* CameraLibraryInitFunc)(Camera *camera, GPContext *context)
Initializes the camera.
Definition gphoto2-library.h:65
int camera_init(Camera *camera, GPContext *context)
Definition template.c:504
CameraText structure used in various functions.
Definition gphoto2-camera.h:68
Definition gphoto2-abilities-list.c:48
Definition gphoto2-camera.h:325
Definition gphoto2-context.c:39