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

libgphoto2 photo camera library (libgphoto2) API 2.5.2

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

gphoto2-library.h
Go to the documentation of this file.
1
25 #ifndef __GPHOTO2_LIBRARY_H__
26 #define __GPHOTO2_LIBRARY_H__
27
28 #include <gphoto2/gphoto2-abilities-list.h>
29 #include <gphoto2/gphoto2-camera.h>
30
31 #ifdef __cplusplus
32 extern "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 */
72 int camera_id (CameraText *id);
73 int camera_abilities (CameraAbilitiesList *list);
74 int camera_init (Camera *camera, GPContext *context);
75
76 #ifdef __cplusplus
77 }
78 #endif /* __cplusplus */
79
80 #endif /* __GPHOTO2_LIBRARY_H__ */