gphoto2-library.h
Go to the documentation of this file.
#ifndef LIBGPHOTO2_GPHOTO2_LIBRARY_H
#define LIBGPHOTO2_GPHOTO2_LIBRARY_H
#include <gphoto2/gphoto2-abilities-list.h>
#include <gphoto2/gphoto2-camera.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef int (* CameraLibraryIdFunc) (CameraText *id);
typedef int (* CameraLibraryAbilitiesFunc) (CameraAbilitiesList *list);
typedef int (* CameraLibraryInitFunc) (Camera *camera, GPContext *context);
/*
* If you want to write a camera library, you need to implement
* the following three functions. Everything else should be declared
* as static.
*/
int camera_id (CameraText *id);
int camera_abilities (CameraAbilitiesList *list);
int camera_init (Camera *camera, GPContext *context);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !defined(LIBGPHOTO2_GPHOTO2_LIBRARY_H) */
gphoto2-abilities-list.h
List of supported camera models including their abilities.
gphoto2-camera.h
Implement Camera object representing a camera attached to the system.
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
_CameraAbilitiesList
Definition: gphoto2-abilities-list.c:46
_Camera
Definition: gphoto2-camera.h:325
_GPContext
Definition: gphoto2-context.c:39