/* Copyright (C) 2008 Andreas Baumann This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef WOLF_ERRORS_H #define WOLF_ERRORS_H /** * @addtogroup wolf_error Common error states * @{ */ /** * @file errors.h * @brief Global Error States * @author Andreas Baumann */ #ifdef __cplusplus extern "C" { #endif /** * @brief Possible error codes of the various libwolf libraries. */ typedef enum { WOLF_OK = 0, /**< no error, everything is fine */ WOLF_ERR_OUT_OF_MEMORY = -1, /**< out of memory in malloc */ WOLF_ERR_INVALID_STATE = -2, /**< the object is called in an illegal moment */ WOLF_ERR_INVALID_VALUE = -3, /**< invalid parameter to a function */ WOLF_ERR_INTERNAL = -4, /**< internal error of the object, usualy rare */ WOLF_ERR_PROGRAMMING = -5, /**< programming mistake, should not happen */ WOLF_ERR_NOT_IMPLEMENTED= -6, /**< not implemented yet */ WOLF_ERR_TIMEOUT = -7 /**< timeout */ } wolf_error_t; #ifdef __cplusplus } #endif /** @} */ /* @addtogroup wolf_error */ #endif /* ifndef WOLF_ERRORS_H */