libgphoto2 photo camera library (libgphoto2) API: gphoto2/gphoto2-library.h Source File

libgphoto2 photo camera library (libgphoto2) API 2.5.34

Loading...
Searching...
No Matches
gphoto2-library.h
Go to the documentation of this file.
1
24
25#ifndef LIBGPHOTO2_GPHOTO2_LIBRARY_H
26#define LIBGPHOTO2_GPHOTO2_LIBRARY_H
27
28#include <gphoto2/gphoto2-abilities-list.h>
29#include <gphoto2/gphoto2-camera.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif /* __cplusplus */
34
42 typedef int (* CameraLibraryIdFunc) (CameraText *id);
43
51 typedef int (* CameraLibraryAbilitiesFunc) (CameraAbilitiesList *list);
52
65 typedef 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);
73int camera_abilities (CameraAbilitiesList *list);
74int camera_init (Camera *camera, GPContext *context);
75
76#ifdef __cplusplus
77}
78#endif /* __cplusplus */
79
80#endif /* !defined(LIBGPHOTO2_GPHOTO2_LIBRARY_H) */
gphoto2-abilities-list.h
List of supported camera models including their abilities.
CameraAbilitiesList
struct _CameraAbilitiesList CameraAbilitiesList
List of supported camera models including their abilities.
Definition gphoto2-abilities-list.h:162
gphoto2-camera.h
Implement Camera object representing a camera attached to the system.
Camera
struct _Camera Camera
Object representing a camera attached to the system.
Definition gphoto2-camera.h:44
GPContext
struct _GPContext GPContext
The gphoto context structure.
Definition gphoto2-context.h:41
CameraLibraryIdFunc
int(* CameraLibraryIdFunc)(CameraText *id)
Returns a unique id for the camera driver.
Definition gphoto2-library.h:42
camera_abilities
int camera_abilities(CameraAbilitiesList *list)
Get a list of abilities of all supported cameras.
Definition gphoto2-library.c:56
CameraLibraryAbilitiesFunc
int(* CameraLibraryAbilitiesFunc)(CameraAbilitiesList *list)
Adds the abilities of the supported models to the supplied list.
Definition gphoto2-library.h:51
camera_id
int camera_id(CameraText *id)
Get a unique camera id.
Definition gphoto2-library.c:38
CameraLibraryInitFunc
int(* CameraLibraryInitFunc)(Camera *camera, GPContext *context)
Initializes the camera.
Definition gphoto2-library.h:65
camera_init
int camera_init(Camera *camera, GPContext *context)
Definition template.c:504
CameraText
CameraText structure used in various functions.
Definition gphoto2-camera.h:68