Logo Search packages:      
Sourcecode: libgphoto2 version File versions

gphoto2-port-result.h

Go to the documentation of this file.
/** \file gphoto2-port-result.h
 *
 * Copyright © 2001 Lutz Müller <lutz@users.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., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __GPHOTO2_PORT_RESULT_H__
#define __GPHOTO2_PORT_RESULT_H__

/* Return values. gphoto2-port should only return values from 0 to -99 */
/**
 * \brief Everything is OK
 * 
 * Note that this is also the value 0, and every error is negative (lower).
 */
00030 #define GP_OK                            0
/**
 * \brief Generic Error
 */
00034 #define GP_ERROR                        -1
/**
 * \brief Bad parameters passed
 */
00038 #define GP_ERROR_BAD_PARAMETERS           -2
/**
 * \brief Out of memory
 */
00042 #define GP_ERROR_NO_MEMORY          -3
/**
 * \brief Error in the camera driver
 */
00046 #define GP_ERROR_LIBRARY            -4
/**
 * \brief Unknown libgphoto2 port passed
 */
00050 #define GP_ERROR_UNKNOWN_PORT       -5
/**
 * \brief Functionality not supported
 */
00054 #define GP_ERROR_NOT_SUPPORTED            -6
/**
 * \brief Generic I/O error
 */
00058 #define GP_ERROR_IO                 -7
/**
 * \brief Buffer overflow of internal structure
 */
00062 #define GP_ERROR_FIXED_LIMIT_EXCEEDED     -8
/**
 * \brief Operation timed out
 */
00066 #define GP_ERROR_TIMEOUT                -10

/**
 * \brief Serial ports not supported
 */
00071 #define GP_ERROR_IO_SUPPORTED_SERIAL    -20
/**
 * \brief USB ports not supported
 */
00075 #define GP_ERROR_IO_SUPPORTED_USB       -21

/**
 * \brief Error initialising I/O
 */
00080 #define GP_ERROR_IO_INIT                -31
/**
 * \brief I/O during read
 */
00084 #define GP_ERROR_IO_READ                -34
/**
 * \brief I/O during write
 */
00088 #define GP_ERROR_IO_WRITE               -35
/**
 * \brief I/O during update of settings
 */
00092 #define GP_ERROR_IO_UPDATE              -37

/**
 * \brief Specified serial speed not possible.
 */
00097 #define GP_ERROR_IO_SERIAL_SPEED        -41

/**
 * \brief Error during USB Clear HALT
 */
00102 #define GP_ERROR_IO_USB_CLEAR_HALT      -51
/**
 * \brief Error when trying to find USB device
 */
00106 #define GP_ERROR_IO_USB_FIND            -52
/**
 * \brief Error when trying to claim the USB device
 */
00110 #define GP_ERROR_IO_USB_CLAIM           -53

/**
 * \brief Error when trying to lock the device
 */
00115 #define GP_ERROR_IO_LOCK                -60

/**
 * \brief Unspecified error when talking to HAL
 */
00120 #define GP_ERROR_HAL                    -70

const char *gp_port_result_as_string (int result);

#endif /* __GPHOTO2_PORT_RESULT_H__ */


Generated by  Doxygen 1.6.0   Back to index