libgphoto2 photo camera library (libgphoto2) API  2.5.13
gphoto2-port-result.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GP_OK   0
 Everything is OK. More...
 
#define GP_ERROR   -1
 Generic Error.
 
#define GP_ERROR_BAD_PARAMETERS   -2
 Bad parameters passed.
 
#define GP_ERROR_NO_MEMORY   -3
 Out of memory.
 
#define GP_ERROR_LIBRARY   -4
 Error in the camera driver.
 
#define GP_ERROR_UNKNOWN_PORT   -5
 Unknown libgphoto2 port passed.
 
#define GP_ERROR_NOT_SUPPORTED   -6
 Functionality not supported.
 
#define GP_ERROR_IO   -7
 Generic I/O error.
 
#define GP_ERROR_FIXED_LIMIT_EXCEEDED   -8
 Buffer overflow of internal structure.
 
#define GP_ERROR_TIMEOUT   -10
 Operation timed out.
 
#define GP_ERROR_IO_SUPPORTED_SERIAL   -20
 Serial ports not supported.
 
#define GP_ERROR_IO_SUPPORTED_USB   -21
 USB ports not supported.
 
#define GP_ERROR_IO_INIT   -31
 Error initialising I/O.
 
#define GP_ERROR_IO_READ   -34
 I/O during read.
 
#define GP_ERROR_IO_WRITE   -35
 I/O during write.
 
#define GP_ERROR_IO_UPDATE   -37
 I/O during update of settings.
 
#define GP_ERROR_IO_SERIAL_SPEED   -41
 Specified serial speed not possible.
 
#define GP_ERROR_IO_USB_CLEAR_HALT   -51
 Error during USB Clear HALT.
 
#define GP_ERROR_IO_USB_FIND   -52
 Error when trying to find USB device.
 
#define GP_ERROR_IO_USB_CLAIM   -53
 Error when trying to claim the USB device.
 
#define GP_ERROR_IO_LOCK   -60
 Error when trying to lock the device.
 
#define GP_ERROR_HAL   -70
 Unspecified error when talking to HAL.
 

Functions

const char * gp_port_result_as_string (int result)
 

Detailed Description

Copyright 2001 Lutz Mueller lutz@.nosp@m.user.nosp@m.s.sf..nosp@m.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

Macro Definition Documentation

◆ GP_OK

#define GP_OK   0

Everything is OK.

Note that this is also the value 0, and every error is negative (lower).

Referenced by camera_abilities(), camera_capture(), camera_capture_preview(), camera_config_get(), camera_config_set(), camera_exit(), camera_id(), camera_init(), camera_manual(), camera_summary(), delete_all_func(), delete_file_func(), file_list_func(), folder_list_func(), get_file_func(), get_info_func(), gp_abilities_list_get_abilities(), gp_abilities_list_reset(), gp_ahd_decode(), gp_bayer_decode(), gp_camera_autodetect(), gp_camera_exit(), gp_camera_free(), gp_camera_get_abilities(), gp_camera_ref(), gp_camera_set_abilities(), gp_camera_unref(), gp_file_append(), gp_file_clean(), gp_file_copy(), gp_file_get_data_and_size(), gp_file_get_mime_type(), gp_file_get_mtime(), gp_file_get_name(), gp_file_get_name_by_type(), gp_file_new(), gp_file_new_from_fd(), gp_file_new_from_handler(), gp_file_ref(), gp_file_save(), gp_file_set_data_and_size(), gp_file_set_mime_type(), gp_file_set_mtime(), gp_file_set_name(), gp_file_slurp(), gp_filesystem_free(), gp_filesystem_new(), gp_filesystem_set_funcs(), gp_gamma_fill_table(), gp_list_append(), gp_list_find_by_name(), gp_list_free(), gp_list_get_name(), gp_list_get_value(), gp_list_new(), gp_list_ref(), gp_list_reset(), gp_list_set_name(), gp_list_set_value(), gp_list_unref(), gp_port_get_info(), gp_port_get_settings(), gp_port_get_timeout(), gp_port_info_get_name(), gp_port_info_get_path(), gp_port_info_get_type(), gp_port_info_list_free(), gp_port_info_list_get_info(), gp_port_info_new(), gp_port_info_set_name(), gp_port_info_set_path(), gp_port_info_set_type(), gp_port_new(), gp_port_set_timeout(), gp_system_closedir(), gp_system_mkdir(), gp_system_rmdir(), gp_widget_add_choice(), gp_widget_append(), gp_widget_free(), gp_widget_get_child(), gp_widget_get_child_by_id(), gp_widget_get_child_by_label(), gp_widget_get_child_by_name(), gp_widget_get_choice(), gp_widget_get_id(), gp_widget_get_info(), gp_widget_get_label(), gp_widget_get_name(), gp_widget_get_parent(), gp_widget_get_range(), gp_widget_get_readonly(), gp_widget_get_root(), gp_widget_get_type(), gp_widget_get_value(), gp_widget_new(), gp_widget_prepend(), gp_widget_ref(), gp_widget_set_changed(), gp_widget_set_info(), gp_widget_set_name(), gp_widget_set_range(), gp_widget_set_readonly(), gp_widget_set_value(), gp_widget_unref(), put_file_func(), and set_info_func().

Function Documentation

◆ gp_port_result_as_string()

const char* gp_port_result_as_string ( int  result)

gp_port_result_as_string:

Returns
: a gphoto2 error code

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