libgphoto2 photo camera library (libgphoto2) API 2.5.30
gphoto2-port-result.h
Go to the documentation of this file.
1
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
46#define GP_ERROR_LIBRARY -4
50#define GP_ERROR_UNKNOWN_PORT -5
54#define GP_ERROR_NOT_SUPPORTED -6
58#define GP_ERROR_IO -7
62#define GP_ERROR_FIXED_LIMIT_EXCEEDED -8
66#define GP_ERROR_TIMEOUT -10
67
71#define GP_ERROR_IO_SUPPORTED_SERIAL -20
75#define GP_ERROR_IO_SUPPORTED_USB -21
76
80#define GP_ERROR_IO_INIT -31
84#define GP_ERROR_IO_READ -34
88#define GP_ERROR_IO_WRITE -35
92#define GP_ERROR_IO_UPDATE -37
93
97#define GP_ERROR_IO_SERIAL_SPEED -41
98
102#define GP_ERROR_IO_USB_CLEAR_HALT -51
106#define GP_ERROR_IO_USB_FIND -52
110#define GP_ERROR_IO_USB_CLAIM -53
111
115#define GP_ERROR_IO_LOCK -60
116
120#define GP_ERROR_HAL -70
121
122#ifdef __cplusplus
123extern "C" {
124#endif /* __cplusplus */
125
126const char *gp_port_result_as_string (int result);
127
128#ifdef __cplusplus
129}
130#endif /* __cplusplus */
131
132#endif /* !defined(LIBGPHOTO2_GPHOTO2_PORT_RESULT_H) */
133
const char * gp_port_result_as_string(int result)
Definition: gphoto2-port-result.c:38