libgphoto2 photo camera library (libgphoto2) API 2.5.31
gphoto2-abilities-list.h
Go to the documentation of this file.
1
25#ifndef LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
26#define LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H
27
31
33
34#ifdef __cplusplus
35extern "C" {
36#endif /* __cplusplus */
37
47
56
70
82
93
94#ifdef _GPHOTO2_INTERNAL_CODE
95
96 /* enum CameraOperation */
97 extern const StringFlagItem gpi_camera_operation_map[];
98
99 /* enum CameraFileOperation */
100 extern const StringFlagItem gpi_file_operation_map[];
101
102 /* enum CameraFolderOperation */
103 extern const StringFlagItem gpi_folder_operation_map[];
104
105 /* enum GphotoDeviceType */
106 extern const StringFlagItem gpi_gphoto_device_type_map[];
107
108 /* enum CameraDriverStatus */
109 extern const StringFlagItem gpi_camera_driver_status_map[];
110
111#endif /* _GPHOTO2_INTERNAL_CODE */
112
113
155
156
163
164
167
169int gp_abilities_list_load_dir (CameraAbilitiesList *list, const char *dir, GPContext *context);
171
173 GPPortInfoList *info_list, CameraList *l,
174 GPContext *context);
175
177 CameraAbilities abilities);
178
180
182 const char *model);
183
185 CameraAbilities *abilities);
186
187const char *gp_message_codeset (const char *);
188
189int gp_init_localedir (const char *localedir);
190
191
199#ifdef _GPHOTO2_INTERNAL_CODE
200#define CAMLIBDIR_ENV "CAMLIBS"
201#endif /* _GPHOTO2_INTERNAL_CODE */
202
203
204#ifdef __cplusplus
205}
206#endif /* __cplusplus */
207
208#endif /* !defined(LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H) */
int gp_abilities_list_lookup_model(CameraAbilitiesList *list, const char *model)
Search the list for an entry of given model name.
Definition gphoto2-abilities-list.c:652
int gp_abilities_list_load(CameraAbilitiesList *list, GPContext *context)
Scans the system for camera drivers.
Definition gphoto2-abilities-list.c:347
int gp_abilities_list_new(CameraAbilitiesList **list)
Allocate the memory for a new abilities list.
Definition gphoto2-abilities-list.c:135
int gp_abilities_list_reset(CameraAbilitiesList *list)
Reset the list.
Definition gphoto2-abilities-list.c:586
CameraFileOperation
Definition gphoto2-abilities-list.h:74
@ GP_FILE_OPERATION_RAW
Definition gphoto2-abilities-list.h:78
@ GP_FILE_OPERATION_EXIF
Definition gphoto2-abilities-list.h:80
@ GP_FILE_OPERATION_PREVIEW
Definition gphoto2-abilities-list.h:77
@ GP_FILE_OPERATION_NONE
Definition gphoto2-abilities-list.h:75
@ GP_FILE_OPERATION_DELETE
Definition gphoto2-abilities-list.h:76
@ GP_FILE_OPERATION_AUDIO
Definition gphoto2-abilities-list.h:79
int gp_abilities_list_count(CameraAbilitiesList *list)
Count the entries in the supplied list.
Definition gphoto2-abilities-list.c:605
const char * gp_message_codeset(const char *)
Set the current character codeset libgphoto2 is operating in.
Definition gphoto2-abilities-list.c:68
int gp_abilities_list_detect(CameraAbilitiesList *list, GPPortInfoList *info_list, CameraList *l, GPContext *context)
Definition gphoto2-abilities-list.c:445
CameraFolderOperation
Definition gphoto2-abilities-list.h:86
@ GP_FOLDER_OPERATION_NONE
Definition gphoto2-abilities-list.h:87
@ GP_FOLDER_OPERATION_MAKE_DIR
Definition gphoto2-abilities-list.h:90
@ GP_FOLDER_OPERATION_PUT_FILE
Definition gphoto2-abilities-list.h:89
@ GP_FOLDER_OPERATION_DELETE_ALL
Definition gphoto2-abilities-list.h:88
@ GP_FOLDER_OPERATION_REMOVE_DIR
Definition gphoto2-abilities-list.h:91
int gp_abilities_list_get_abilities(CameraAbilitiesList *list, int index, CameraAbilities *abilities)
Retrieve the camera abilities of entry with supplied index number.
Definition gphoto2-abilities-list.c:681
int gp_abilities_list_free(CameraAbilitiesList *list)
Free the given CameraAbilitiesList object.
Definition gphoto2-abilities-list.c:159
CameraOperation
Definition gphoto2-abilities-list.h:61
@ GP_OPERATION_TRIGGER_CAPTURE
Definition gphoto2-abilities-list.h:68
@ GP_OPERATION_CONFIG
Definition gphoto2-abilities-list.h:67
@ GP_OPERATION_CAPTURE_PREVIEW
Definition gphoto2-abilities-list.h:66
@ GP_OPERATION_CAPTURE_AUDIO
Definition gphoto2-abilities-list.h:65
@ GP_OPERATION_CAPTURE_VIDEO
Definition gphoto2-abilities-list.h:64
@ GP_OPERATION_NONE
Definition gphoto2-abilities-list.h:62
@ GP_OPERATION_CAPTURE_IMAGE
Definition gphoto2-abilities-list.h:63
int gp_init_localedir(const char *localedir)
Initialize the localedir directory for the libgphoto2 gettext domain.
Definition gphoto2-abilities-list.c:96
CameraDriverStatus
Definition gphoto2-abilities-list.h:41
@ GP_DRIVER_STATUS_PRODUCTION
Definition gphoto2-abilities-list.h:42
@ GP_DRIVER_STATUS_TESTING
Definition gphoto2-abilities-list.h:43
@ GP_DRIVER_STATUS_EXPERIMENTAL
Definition gphoto2-abilities-list.h:44
@ GP_DRIVER_STATUS_DEPRECATED
Definition gphoto2-abilities-list.h:45
int gp_abilities_list_append(CameraAbilitiesList *list, CameraAbilities abilities)
Append the abilities to the list.
Definition gphoto2-abilities-list.c:555
GphotoDeviceType
Definition gphoto2-abilities-list.h:52
@ GP_DEVICE_AUDIO_PLAYER
Definition gphoto2-abilities-list.h:54
@ GP_DEVICE_STILL_CAMERA
Definition gphoto2-abilities-list.h:53
Context callback operation functions.
GPPortType
The gphoto port type.
Definition gphoto2-port-info-list.h:34
Describes the properties of a specific camera.
Definition gphoto2-abilities-list.h:120
int reserved7
Definition gphoto2-abilities-list.h:152
int reserved5
Definition gphoto2-abilities-list.h:150
int usb_vendor
USB Vendor D.
Definition gphoto2-abilities-list.h:134
GPPortType port
Supported port types.
Definition gphoto2-abilities-list.h:125
int usb_class
USB device class.
Definition gphoto2-abilities-list.h:136
int reserved8
Definition gphoto2-abilities-list.h:153
int usb_protocol
USB device protocol.
Definition gphoto2-abilities-list.h:138
int reserved6
Definition gphoto2-abilities-list.h:151
CameraDriverStatus status
driver quality
Definition gphoto2-abilities-list.h:122
int reserved4
Definition gphoto2-abilities-list.h:149
CameraFolderOperation folder_operations
Camera folder op funcs.
Definition gphoto2-abilities-list.h:132
GphotoDeviceType device_type
Device type.
Definition gphoto2-abilities-list.h:144
int reserved3
Definition gphoto2-abilities-list.h:148
int usb_product
USB Product ID.
Definition gphoto2-abilities-list.h:135
CameraOperation operations
Camera operation funcs.
Definition gphoto2-abilities-list.h:130
int usb_subclass
USB device subclass.
Definition gphoto2-abilities-list.h:137
int reserved2
Definition gphoto2-abilities-list.h:147
CameraFileOperation file_operations
Camera file op funcs.
Definition gphoto2-abilities-list.h:131
Definition gphoto2-abilities-list.c:48
Definition gphoto2-list.c:47
Definition gphoto2-context.c:39
Definition gphoto2-port-info-list.c:58