00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __GPHOTO2_PORT_RESULT_H__
00022 #define __GPHOTO2_PORT_RESULT_H__
00023
00024
00025 #define GP_OK 0
00026 #define GP_ERROR -1
00027 #define GP_ERROR_BAD_PARAMETERS -2
00028 #define GP_ERROR_NO_MEMORY -3
00029 #define GP_ERROR_LIBRARY -4
00030 #define GP_ERROR_UNKNOWN_PORT -5
00031 #define GP_ERROR_NOT_SUPPORTED -6
00032 #define GP_ERROR_IO -7
00033
00034 #define GP_ERROR_TIMEOUT -10
00035
00036 #define GP_ERROR_IO_SUPPORTED_SERIAL -20
00037 #define GP_ERROR_IO_SUPPORTED_USB -21
00038
00039 #define GP_ERROR_IO_INIT -31
00040 #define GP_ERROR_IO_READ -34
00041 #define GP_ERROR_IO_WRITE -35
00042 #define GP_ERROR_IO_UPDATE -37
00043
00044 #define GP_ERROR_IO_SERIAL_SPEED -41
00045
00046 #define GP_ERROR_IO_USB_CLEAR_HALT -51
00047 #define GP_ERROR_IO_USB_FIND -52
00048 #define GP_ERROR_IO_USB_CLAIM -53
00049
00050 #define GP_ERROR_IO_LOCK -60
00051
00052 #define GP_ERROR_HAL -70
00053
00054 const char *gp_port_result_as_string (int result);
00055
00056 #endif
00057