00001 /* Copyright (C) 2005-2010, Axis Communications AB, LUND, SWEDEN 00002 * 00003 * This file is part of RAPP. 00004 * 00005 * RAPP is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU Lesser General Public License as published 00007 * by the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * You can use the comments under either the terms of the GNU Lesser General 00010 * Public License version 3 as published by the Free Software Foundation, 00011 * either version 3 of the License or (at your option) any later version, or 00012 * the GNU Free Documentation License version 1.3 or any later version 00013 * published by the Free Software Foundation; with no Invariant Sections, no 00014 * Front-Cover Texts, and no Back-Cover Texts. 00015 * A copy of the license is included in the documentation section entitled 00016 * "GNU Free Documentation License". 00017 * 00018 * RAPP is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU Lesser General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU Lesser General Public 00024 * License and a copy of the GNU Free Documentation License along 00025 * with RAPP. If not, see <http://www.gnu.org/licenses/>. 00026 */ 00027 00050 #ifndef RAPP_ERROR_H 00051 #define RAPP_ERROR_H 00052 00053 #include <stdint.h> /* uint8_t */ 00054 #include "rapp_export.h" 00055 00056 #ifdef __cplusplus 00057 extern "C" { 00058 #endif 00059 00060 /* 00061 * ------------------------------------------------------------- 00062 * Error codes 00063 * ------------------------------------------------------------- 00064 */ 00065 00069 #define RAPP_ERR_BUF_NULL -1 00070 00074 #define RAPP_ERR_BUF_ALIGN -2 00075 00079 #define RAPP_ERR_BUF_OFFSET -3 00080 00084 #define RAPP_ERR_DIM_ALIGN -4 00085 00089 #define RAPP_ERR_IMG_SIZE -5 00090 00094 #define RAPP_ERR_PARM_NULL -6 00095 00099 #define RAPP_ERR_PARM_RANGE -7 00100 00104 #define RAPP_ERR_UNINITIALIZED -8 00105 00109 #define RAPP_ERR_OVERLAP -9 00110 00111 00112 /* 00113 * ------------------------------------------------------------- 00114 * Exported functions 00115 * ------------------------------------------------------------- 00116 */ 00117 00125 RAPP_EXPORT const char* 00126 rapp_error(int code); 00127 00128 #ifdef __cplusplus 00129 }; 00130 #endif 00131 00132 #endif /* RAPP_ERROR_H */ 00133