27 # define _(String) dgettext (GETTEXT_PACKAGE, String)
29 # define N_(String) gettext_noop (String)
31 # define N_(String) (String)
34 # define textdomain(String) (String)
35 # define gettext(String) (String)
36 # define dgettext(Domain,Message) (Message)
37 # define dcgettext(Domain,Message,Type) (Message)
38 # define bindtextdomain(Domain,Directory) (Domain)
39 # define _(String) (String)
40 # define N_(String) (String)
60 return _(
"Unspecified error");
62 return _(
"I/O problem");
64 return _(
"Bad parameters");
66 return _(
"Unsupported operation");
68 return _(
"Fixed limit exceeded");
70 return _(
"Timeout reading from or writing to the port");
72 return _(
"Serial port not supported");
74 return _(
"USB port not supported");
76 return _(
"Unknown port");
78 return _(
"Out of memory");
80 return _(
"Error loading a library");
82 return _(
"Error initializing the port");
84 return _(
"Error reading from the port");
86 return _(
"Error writing to the port");
88 return _(
"Error updating the port settings");
90 return _(
"Error setting the serial port speed");
92 return _(
"Error clearing a halt condition on the USB port");
94 return _(
"Could not find the requested device on the USB port");
96 return _(
"Could not claim the USB device");
98 return _(
"Could not lock the device");
100 return _(
"libhal error");
102 return _(
"Unknown error");
const char * gp_port_result_as_string(int result)
#define GP_ERROR_IO_USB_CLAIM
Error when trying to claim the USB device.
#define GP_ERROR_FIXED_LIMIT_EXCEEDED
Buffer overflow of internal structure.
#define GP_ERROR_NO_MEMORY
Out of memory.
#define GP_ERROR_IO_READ
I/O during read.
#define GP_ERROR_IO
Generic I/O error.
#define GP_OK
Everything is OK.
#define GP_ERROR_HAL
Unspecified error when talking to HAL.
#define GP_ERROR_IO_LOCK
Error when trying to lock the device.
#define GP_ERROR_IO_UPDATE
I/O during update of settings.
#define GP_ERROR_IO_SUPPORTED_USB
USB ports not supported.
#define GP_ERROR_IO_SUPPORTED_SERIAL
Serial ports not supported.
#define GP_ERROR_TIMEOUT
Operation timed out.
#define GP_ERROR_IO_SERIAL_SPEED
Specified serial speed not possible.
#define GP_ERROR_NOT_SUPPORTED
Functionality not supported.
#define GP_ERROR_IO_WRITE
I/O during write.
#define GP_ERROR_IO_INIT
Error initialising I/O.
#define GP_ERROR_BAD_PARAMETERS
Bad parameters passed.
#define GP_ERROR_IO_USB_CLEAR_HALT
Error during USB Clear HALT.
#define GP_ERROR_LIBRARY
Error in the camera driver.
#define GP_ERROR
Generic Error.
#define GP_ERROR_UNKNOWN_PORT
Unknown libgphoto2 port passed.
#define GP_ERROR_IO_USB_FIND
Error when trying to find USB device.