gphoto2-port-result.h
Go to the documentation of this file.
#ifndef __GPHOTO2_PORT_RESULT_H__
#define __GPHOTO2_PORT_RESULT_H__
/* Return values. gphoto2-port should only return values from 0 to -99 */
#define GP_OK 0
#define GP_ERROR -1
#define GP_ERROR_BAD_PARAMETERS -2
#define GP_ERROR_NO_MEMORY -3
#define GP_ERROR_LIBRARY -4
#define GP_ERROR_UNKNOWN_PORT -5
#define GP_ERROR_NOT_SUPPORTED -6
#define GP_ERROR_IO -7
#define GP_ERROR_FIXED_LIMIT_EXCEEDED -8
#define GP_ERROR_TIMEOUT -10
#define GP_ERROR_IO_SUPPORTED_SERIAL -20
#define GP_ERROR_IO_SUPPORTED_USB -21
#define GP_ERROR_IO_INIT -31
#define GP_ERROR_IO_READ -34
#define GP_ERROR_IO_WRITE -35
#define GP_ERROR_IO_UPDATE -37
#define GP_ERROR_IO_SERIAL_SPEED -41
#define GP_ERROR_IO_USB_CLEAR_HALT -51
#define GP_ERROR_IO_USB_FIND -52
#define GP_ERROR_IO_USB_CLAIM -53
#define GP_ERROR_IO_LOCK -60
#define GP_ERROR_HAL -70
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
const char *gp_port_result_as_string (int result);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GPHOTO2_PORT_RESULT_H__ */
gp_port_result_as_string
const char * gp_port_result_as_string(int result)
Definition: gphoto2-port-result.c:54