libgphoto2 photo camera library (libgphoto2) API
2.5.32
Loading...
Searching...
No Matches
gphoto2-port-result.h
Go to the documentation of this file.
1
20
21
#ifndef LIBGPHOTO2_GPHOTO2_PORT_RESULT_H
22
#define LIBGPHOTO2_GPHOTO2_PORT_RESULT_H
23
24
/* Return values. gphoto2-port should only return values from 0 to -99 */
30
#define GP_OK 0
34
#define GP_ERROR -1
38
#define GP_ERROR_BAD_PARAMETERS -2
42
#define GP_ERROR_NO_MEMORY -3
43
/* FIXME: GP_ERROR_NO_MEMORY is used to communicate two completely differnt
44
* things, which have nothing to do with each other:
45
* - the camera went out of memory because the storage space ran out, this
46
* is totally "normal"
47
* - a malloc on the host computer failed: this will completely interrupt
48
* the functionality and likely crash the process soonish
49
*/
53
#define GP_ERROR_LIBRARY -4
57
#define GP_ERROR_UNKNOWN_PORT -5
61
#define GP_ERROR_NOT_SUPPORTED -6
65
#define GP_ERROR_IO -7
69
#define GP_ERROR_FIXED_LIMIT_EXCEEDED -8
73
#define GP_ERROR_TIMEOUT -10
74
78
#define GP_ERROR_IO_SUPPORTED_SERIAL -20
82
#define GP_ERROR_IO_SUPPORTED_USB -21
83
87
#define GP_ERROR_IO_INIT -31
91
#define GP_ERROR_IO_READ -34
95
#define GP_ERROR_IO_WRITE -35
99
#define GP_ERROR_IO_UPDATE -37
100
104
#define GP_ERROR_IO_SERIAL_SPEED -41
105
109
#define GP_ERROR_IO_USB_CLEAR_HALT -51
113
#define GP_ERROR_IO_USB_FIND -52
117
#define GP_ERROR_IO_USB_CLAIM -53
118
122
#define GP_ERROR_IO_LOCK -60
123
127
#define GP_ERROR_HAL -70
128
129
#ifdef __cplusplus
130
extern
"C"
{
131
#endif
/* __cplusplus */
132
133
const
char
*
gp_port_result_as_string
(
int
result);
134
135
#ifdef __cplusplus
136
}
137
#endif
/* __cplusplus */
138
139
#endif
/* !defined(LIBGPHOTO2_GPHOTO2_PORT_RESULT_H) */
140
gp_port_result_as_string
const char * gp_port_result_as_string(int result)
Definition
gphoto2-port-result.c:38
libgphoto2_port
gphoto2
gphoto2-port-result.h
Generated by
1.14.0