libgphoto2 photo camera library (libgphoto2) API  2.4.11
gphoto2-abilities-list.h
Go to the documentation of this file.
1 
25 #ifndef __GPHOTO2_ABILITIES_LIST_H__
26 #define __GPHOTO2_ABILITIES_LIST_H__
27 
29 #include <gphoto2/gphoto2-list.h>
31 
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37 
41 typedef enum {
47 
52 typedef enum {
56 
61 typedef enum {
69 
73 typedef enum {
81 
85 typedef enum {
92 
93 #ifdef _GPHOTO2_INTERNAL_CODE
94 
95  /* enum CameraOperation */
96  extern const StringFlagItem gpi_camera_operation_map[];
97 
98  /* enum CameraFileOperation */
99  extern const StringFlagItem gpi_file_operation_map[];
100 
101  /* enum CameraFolderOperation */
102  extern const StringFlagItem gpi_folder_operation_map[];
103 
104  /* enum GphotoDeviceType */
105  extern const StringFlagItem gpi_gphoto_device_type_map[];
106 
107  /* enum CameraDriverStatus */
108  extern const StringFlagItem gpi_camera_driver_status_map[];
109 
110 #endif /* _GPHOTO2_INTERNAL_CODE */
111 
112 
119 typedef struct {
120  char model [128];
126  int speed [64];
127 
128  /* Supported operations */
135  int usb_class;
139  /* For core use */
140  char library [1024];
141  char id [1024];
146  int reserved2;
147  int reserved3;
148  int reserved4;
149  int reserved5;
150  int reserved6;
151  int reserved7;
152  int reserved8;
154 
155 
162 
163 
166 
169 
171  GPPortInfoList *info_list, CameraList *l,
172  GPContext *context);
173 
175  CameraAbilities abilities);
176 
178 
180  const char *model);
181 
183  CameraAbilities *abilities);
184 
185 const char *gp_message_codeset (const char *);
186 
187 
195 #ifdef _GPHOTO2_INTERNAL_CODE
196 #define CAMLIBDIR_ENV "CAMLIBS"
197 #endif /* _GPHOTO2_INTERNAL_CODE */
198 
199 
200 #ifdef __cplusplus
201 }
202 #endif /* __cplusplus */
203 
204 #endif /* __GPHOTO2_ABILITIES_LIST_H__ */
CameraOperation operations
Camera operation funcs.
Definition: gphoto2-abilities-list.h:129
int usb_subclass
USB device subclass.
Definition: gphoto2-abilities-list.h:136
int reserved8
Definition: gphoto2-abilities-list.h:152
CameraFolderOperation folder_operations
Camera folder op funcs.
Definition: gphoto2-abilities-list.h:131
Definition: gphoto2-list.c:77
int usb_product
USB Product ID.
Definition: gphoto2-abilities-list.h:134
int reserved6
Definition: gphoto2-abilities-list.h:150
Definition: gphoto2-abilities-list.h:88
Definition: gphoto2-abilities-list.h:67
int reserved7
Definition: gphoto2-abilities-list.h:151
GPPortType port
Supported port types.
Definition: gphoto2-abilities-list.h:124
int gp_abilities_list_count(CameraAbilitiesList *list)
Count the entries in the supplied list.
Definition: gphoto2-abilities-list.c:575
Definition: gphoto2-abilities-list.h:66
CameraDriverStatus
Definition: gphoto2-abilities-list.h:41
Definition: gphoto2-abilities-list.h:87
Definition: gphoto2-abilities-list.h:42
int reserved3
Definition: gphoto2-abilities-list.h:147
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:622
Definition: gphoto2-abilities-list.h:77
GphotoDeviceType device_type
Device type.
Definition: gphoto2-abilities-list.h:143
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:652
Definition: gphoto2-abilities-list.h:79
Definition: gphoto2-abilities-list.c:69
int usb_vendor
USB Vendor D.
Definition: gphoto2-abilities-list.h:133
Definition: gphoto2-abilities-list.h:54
int usb_class
USB device class.
Definition: gphoto2-abilities-list.h:135
int reserved5
Definition: gphoto2-abilities-list.h:149
int reserved2
Definition: gphoto2-abilities-list.h:146
Context callback operation functions.
int gp_abilities_list_free(CameraAbilitiesList *list)
Free the given CameraAbilitiesList object.
Definition: gphoto2-abilities-list.c:132
int gp_abilities_list_load(CameraAbilitiesList *list, GPContext *context)
Scans the system for camera drivers.
Definition: gphoto2-abilities-list.c:314
Definition: gphoto2-abilities-list.h:76
Definition: gphoto2-abilities-list.h:65
CameraDriverStatus status
driver quality
Definition: gphoto2-abilities-list.h:121
Definition: gphoto2-abilities-list.h:89
Definition: gphoto2-port-info-list.c:69
int reserved4
Definition: gphoto2-abilities-list.h:148
Definition: gphoto2-abilities-list.h:53
int usb_protocol
USB device protocol.
Definition: gphoto2-abilities-list.h:137
CameraFileOperation file_operations
Camera file op funcs.
Definition: gphoto2-abilities-list.h:130
CameraFolderOperation
Definition: gphoto2-abilities-list.h:85
int gp_abilities_list_append(CameraAbilitiesList *list, CameraAbilities abilities)
Append the abilities to the list.
Definition: gphoto2-abilities-list.c:520
Definition: gphoto2-abilities-list.h:75
Definition: gphoto2-abilities-list.h:43
GphotoDeviceType
Definition: gphoto2-abilities-list.h:52
Definition: gphoto2-abilities-list.h:62
CameraOperation
Definition: gphoto2-abilities-list.h:61
Definition: gphoto2-abilities-list.h:64
Definition: gphoto2-abilities-list.h:44
int gp_abilities_list_reset(CameraAbilitiesList *list)
Reset the list.
Definition: gphoto2-abilities-list.c:555
CameraFileOperation
Definition: gphoto2-abilities-list.h:73
Definition: gphoto2-abilities-list.h:86
Definition: gphoto2-abilities-list.h:78
const char * gp_message_codeset(const char *codeset)
Set the current character codeset libgphoto2 is operating in.
Definition: gphoto2-abilities-list.c:90
Definition: gphoto2-abilities-list.h:63
Definition: gphoto2-abilities-list.h:74
Definition: gphoto2-abilities-list.h:45
int gp_abilities_list_new(CameraAbilitiesList **list)
Allocate the memory for a new abilities list.
Definition: gphoto2-abilities-list.c:107
Describes the properties of a specific camera.
Definition: gphoto2-abilities-list.h:119
Definition: gphoto2-context.c:35
Definition: gphoto2-abilities-list.h:90
int gp_abilities_list_detect(CameraAbilitiesList *list, GPPortInfoList *info_list, CameraList *l, GPContext *context)
Definition: gphoto2-abilities-list.c:417
GPPortType
The gphoto port type.
Definition: gphoto2-port-info-list.h:34