libgphoto2 photo camera library (libgphoto2) Internals
2.5.26
|
Go to the source code of this file.
Macros | |
#define | GP_OK 0 |
Everything is OK. More... | |
#define | GP_ERROR -1 |
Generic Error. More... | |
#define | GP_ERROR_BAD_PARAMETERS -2 |
Bad parameters passed. More... | |
#define | GP_ERROR_NO_MEMORY -3 |
Out of memory. More... | |
#define | GP_ERROR_LIBRARY -4 |
Error in the camera driver. More... | |
#define | GP_ERROR_UNKNOWN_PORT -5 |
Unknown libgphoto2 port passed. More... | |
#define | GP_ERROR_NOT_SUPPORTED -6 |
Functionality not supported. More... | |
#define | GP_ERROR_IO -7 |
Generic I/O error. More... | |
#define | GP_ERROR_FIXED_LIMIT_EXCEEDED -8 |
Buffer overflow of internal structure. More... | |
#define | GP_ERROR_TIMEOUT -10 |
Operation timed out. More... | |
#define | GP_ERROR_IO_SUPPORTED_SERIAL -20 |
Serial ports not supported. More... | |
#define | GP_ERROR_IO_SUPPORTED_USB -21 |
USB ports not supported. More... | |
#define | GP_ERROR_IO_INIT -31 |
Error initialising I/O. More... | |
#define | GP_ERROR_IO_READ -34 |
I/O during read. More... | |
#define | GP_ERROR_IO_WRITE -35 |
I/O during write. More... | |
#define | GP_ERROR_IO_UPDATE -37 |
I/O during update of settings. More... | |
#define | GP_ERROR_IO_SERIAL_SPEED -41 |
Specified serial speed not possible. More... | |
#define | GP_ERROR_IO_USB_CLEAR_HALT -51 |
Error during USB Clear HALT. More... | |
#define | GP_ERROR_IO_USB_FIND -52 |
Error when trying to find USB device. More... | |
#define | GP_ERROR_IO_USB_CLAIM -53 |
Error when trying to claim the USB device. More... | |
#define | GP_ERROR_IO_LOCK -60 |
Error when trying to lock the device. More... | |
#define | GP_ERROR_HAL -70 |
Unspecified error when talking to HAL. More... | |
Functions | |
const char * | gp_port_result_as_string (int result) |
Copyright 2001 Lutz Mueller lutz@ user s.sf. net
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file gphoto2-port-result.h.
#define GP_ERROR -1 |
Generic Error.
Definition at line 34 of file gphoto2-port-result.h.
#define GP_ERROR_BAD_PARAMETERS -2 |
Bad parameters passed.
Definition at line 38 of file gphoto2-port-result.h.
#define GP_ERROR_FIXED_LIMIT_EXCEEDED -8 |
Buffer overflow of internal structure.
Definition at line 62 of file gphoto2-port-result.h.
#define GP_ERROR_HAL -70 |
Unspecified error when talking to HAL.
Definition at line 120 of file gphoto2-port-result.h.
#define GP_ERROR_IO -7 |
Generic I/O error.
Definition at line 58 of file gphoto2-port-result.h.
#define GP_ERROR_IO_INIT -31 |
Error initialising I/O.
Definition at line 80 of file gphoto2-port-result.h.
#define GP_ERROR_IO_LOCK -60 |
Error when trying to lock the device.
Definition at line 115 of file gphoto2-port-result.h.
#define GP_ERROR_IO_READ -34 |
I/O during read.
Definition at line 84 of file gphoto2-port-result.h.
#define GP_ERROR_IO_SERIAL_SPEED -41 |
Specified serial speed not possible.
Definition at line 97 of file gphoto2-port-result.h.
#define GP_ERROR_IO_SUPPORTED_SERIAL -20 |
Serial ports not supported.
Definition at line 71 of file gphoto2-port-result.h.
#define GP_ERROR_IO_SUPPORTED_USB -21 |
USB ports not supported.
Definition at line 75 of file gphoto2-port-result.h.
#define GP_ERROR_IO_UPDATE -37 |
I/O during update of settings.
Definition at line 92 of file gphoto2-port-result.h.
#define GP_ERROR_IO_USB_CLAIM -53 |
Error when trying to claim the USB device.
Definition at line 110 of file gphoto2-port-result.h.
#define GP_ERROR_IO_USB_CLEAR_HALT -51 |
Error during USB Clear HALT.
Definition at line 102 of file gphoto2-port-result.h.
#define GP_ERROR_IO_USB_FIND -52 |
Error when trying to find USB device.
Definition at line 106 of file gphoto2-port-result.h.
#define GP_ERROR_IO_WRITE -35 |
I/O during write.
Definition at line 88 of file gphoto2-port-result.h.
#define GP_ERROR_LIBRARY -4 |
Error in the camera driver.
Definition at line 46 of file gphoto2-port-result.h.
#define GP_ERROR_NO_MEMORY -3 |
Out of memory.
Definition at line 42 of file gphoto2-port-result.h.
#define GP_ERROR_NOT_SUPPORTED -6 |
Functionality not supported.
Definition at line 54 of file gphoto2-port-result.h.
#define GP_ERROR_TIMEOUT -10 |
Operation timed out.
Definition at line 66 of file gphoto2-port-result.h.
#define GP_ERROR_UNKNOWN_PORT -5 |
Unknown libgphoto2 port passed.
Definition at line 50 of file gphoto2-port-result.h.
#define GP_OK 0 |
Everything is OK.
Note that this is also the value 0, and every error is negative (lower).
Definition at line 30 of file gphoto2-port-result.h.
const char* gp_port_result_as_string | ( | int | result | ) |
gp_port_result_as_string:
Returns a string representation of a gphoto2 error code. Those are static error descriptions. You can get dynamic ones that explain the error more in depth using gp_port_get_error.
Return value: a string representation of a gphoto2 error code
Definition at line 54 of file gphoto2-port-result.c.
References _, GP_ERROR, GP_ERROR_BAD_PARAMETERS, GP_ERROR_FIXED_LIMIT_EXCEEDED, GP_ERROR_HAL, GP_ERROR_IO, GP_ERROR_IO_INIT, GP_ERROR_IO_LOCK, GP_ERROR_IO_READ, GP_ERROR_IO_SERIAL_SPEED, GP_ERROR_IO_SUPPORTED_SERIAL, GP_ERROR_IO_SUPPORTED_USB, GP_ERROR_IO_UPDATE, GP_ERROR_IO_USB_CLAIM, GP_ERROR_IO_USB_CLEAR_HALT, GP_ERROR_IO_USB_FIND, GP_ERROR_IO_WRITE, GP_ERROR_LIBRARY, GP_ERROR_NO_MEMORY, GP_ERROR_NOT_SUPPORTED, GP_ERROR_TIMEOUT, GP_ERROR_UNKNOWN_PORT, GP_OK, and result.
Referenced by foreach_func(), gp_port_read(), gp_port_write(), and gp_result_as_string().