libgphoto2 photo camera library (libgphoto2) API
2.4.14
Main Page
Related Pages
Data Structures
Files
File List
Globals
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
28
#include <
gphoto2/gphoto2-context.h
>
29
#include <
gphoto2/gphoto2-list.h
>
30
#include <
gphoto2/gphoto2-port-info-list.h
>
31
32
#include <
gphoto2/gphoto2-port-log.h
>
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
/* __cplusplus */
37
41
typedef
enum
{
42
GP_DRIVER_STATUS_PRODUCTION
,
43
GP_DRIVER_STATUS_TESTING
,
44
GP_DRIVER_STATUS_EXPERIMENTAL
,
45
GP_DRIVER_STATUS_DEPRECATED
46
}
CameraDriverStatus
;
47
52
typedef
enum
{
53
GP_DEVICE_STILL_CAMERA
= 0,
54
GP_DEVICE_AUDIO_PLAYER
= 1 << 0
55
}
GphotoDeviceType
;
56
61
typedef
enum
{
62
GP_OPERATION_NONE
= 0,
63
GP_OPERATION_CAPTURE_IMAGE
= 1 << 0,
64
GP_OPERATION_CAPTURE_VIDEO
= 1 << 1,
65
GP_OPERATION_CAPTURE_AUDIO
= 1 << 2,
66
GP_OPERATION_CAPTURE_PREVIEW
= 1 << 3,
67
GP_OPERATION_CONFIG
= 1 << 4
68
}
CameraOperation
;
69
73
typedef
enum
{
74
GP_FILE_OPERATION_NONE
= 0,
75
GP_FILE_OPERATION_DELETE
= 1 << 1,
76
GP_FILE_OPERATION_PREVIEW
= 1 << 3,
77
GP_FILE_OPERATION_RAW
= 1 << 4,
78
GP_FILE_OPERATION_AUDIO
= 1 << 5,
79
GP_FILE_OPERATION_EXIF
= 1 << 6
80
}
CameraFileOperation
;
81
85
typedef
enum
{
86
GP_FOLDER_OPERATION_NONE
= 0,
87
GP_FOLDER_OPERATION_DELETE_ALL
= 1 << 0,
88
GP_FOLDER_OPERATION_PUT_FILE
= 1 << 1,
89
GP_FOLDER_OPERATION_MAKE_DIR
= 1 << 2,
90
GP_FOLDER_OPERATION_REMOVE_DIR
= 1 << 3
91
}
CameraFolderOperation
;
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];
121
CameraDriverStatus
status
;
124
GPPortType
port
;
126
int
speed [64];
127
128
/* Supported operations */
129
CameraOperation
operations
;
130
CameraFileOperation
file_operations
;
131
CameraFolderOperation
folder_operations
;
133
int
usb_vendor
;
134
int
usb_product
;
135
int
usb_class
;
136
int
usb_subclass
;
137
int
usb_protocol
;
139
/* For core use */
140
char
library [1024];
141
char
id
[1024];
143
GphotoDeviceType
device_type
;
146
int
reserved2
;
147
int
reserved3
;
148
int
reserved4
;
149
int
reserved5
;
150
int
reserved6
;
151
int
reserved7
;
152
int
reserved8
;
153
}
CameraAbilities
;
154
155
161
typedef
struct
_CameraAbilitiesList
CameraAbilitiesList
;
162
163
164
int
gp_abilities_list_new
(
CameraAbilitiesList
**list);
165
int
gp_abilities_list_free
(
CameraAbilitiesList
*list);
166
167
int
gp_abilities_list_load
(
CameraAbilitiesList
*list,
GPContext
*context);
168
int
gp_abilities_list_reset
(
CameraAbilitiesList
*list);
169
170
int
gp_abilities_list_detect
(
CameraAbilitiesList
*list,
171
GPPortInfoList
*info_list,
CameraList
*l,
172
GPContext
*context);
173
174
int
gp_abilities_list_append
(
CameraAbilitiesList
*list,
175
CameraAbilities
abilities);
176
177
int
gp_abilities_list_count
(
CameraAbilitiesList
*list);
178
179
int
gp_abilities_list_lookup_model
(
CameraAbilitiesList
*list,
180
const
char
*model);
181
182
int
gp_abilities_list_get_abilities
(
CameraAbilitiesList
*list,
int
index,
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__ */
gphoto2
gphoto2-abilities-list.h
Generated on Thu Mar 20 2014 08:53:15 for libgphoto2 photo camera library (libgphoto2) API by
1.8.1.2