Logo Search packages:      
Sourcecode: libgphoto2 version File versions

gphoto2-result.h

Go to the documentation of this file.
/** \file
 *
 * \author Copyright 2000 Scott Fritzinger
 *
 * \note
 * 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.
 *
 * \note
 * 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. 
 *
 * \note
 * 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_RESULT_H__
#define __GPHOTO2_RESULT_H__

/* Additional error codes are defined here */
#include <gphoto2/gphoto2-port-result.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
 * GP_ERROR_CORRUPTED_DATA:
 *
 * Data is corrupt. This error is reported by camera drivers if corrupted
 * data has been received that can not be automatically handled. Normally,
 * drivers will do everything possible to automatically recover from this
 * error.
 **/
00042 #define GP_ERROR_CORRUPTED_DATA      -102 /* Corrupted data             */

/**
 * GP_ERROR_FILE_EXISTS:
 *
 * An operation failed because a file existed. This error is reported for
 * example when the user tries to create a file that already exists.
 **/
00050 #define GP_ERROR_FILE_EXISTS         -103

/**
 * GP_ERROR_MODEL_NOT_FOUND:
 *
 * The specified model could not be found. This error is reported when
 * the user specified a model that does not seem to be supported by 
 * any driver.
 **/
00059 #define GP_ERROR_MODEL_NOT_FOUND     -105

/**
 * GP_ERROR_DIRECTORY_NOT_FOUND:
 *
 * The specified directory could not be found. This error is reported when
 * the user specified a directory that is non-existent.
 **/
00067 #define GP_ERROR_DIRECTORY_NOT_FOUND -107

/**
 * GP_ERROR_FILE_NOT_FOUND:
 *
 * The specified file could not be found. This error is reported when
 * the user wants to access a file that is non-existent.
 **/
00075 #define GP_ERROR_FILE_NOT_FOUND      -108

/**
 * GP_ERROR_DIRECTORY_EXISTS:
 *
 * The specified directory already exists. This error is reported for example 
 * when the user wants to create a directory that already exists.
 **/
00083 #define GP_ERROR_DIRECTORY_EXISTS    -109

/**
 * GP_ERROR_CAMERA_BUSY:
 *
 * Camera I/O or a command is in progress.
 **/
00090 #define GP_ERROR_CAMERA_BUSY    -110

/**
 * GP_ERROR_PATH_NOT_ABSOLUTE:
 * 
 * The specified path is not absolute. This error is reported when the user
 * specifies paths that are not absolute, i.e. paths like "path/to/directory".
 * As a rule of thumb, in gphoto2, there is nothing like relative paths.
 **/
00099 #define GP_ERROR_PATH_NOT_ABSOLUTE   -111

#define GP_ERROR_CANCEL              -112

/**
 * GP_ERROR_CAMERA_ERROR:
 *
 * The camera reported some kind of error. This can be either a
 * photographic error, such as failure to autofocus, underexposure, or
 * violating storage permission, anything else that stops the camera
 * from performing the operation.
 */
00111 #define GP_ERROR_CAMERA_ERROR      -113

/**
 * GP_ERROR_OS_FAILURE:
 *
 * There was some sort of OS error in communicating with the camera,
 * e.g. lack of permission for an operation.
 */
00119 #define GP_ERROR_OS_FAILURE        -114


const char *gp_result_as_string      (int result);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __GPHOTO2_RESULT_H__ */

Generated by  Doxygen 1.6.0   Back to index