libt3window
|
00001 /* Copyright (C) 2011 G.P. Halkes 00002 This program is free software: you can redistribute it and/or modify 00003 it under the terms of the GNU General Public License version 3, as 00004 published by the Free Software Foundation. 00005 00006 This program is distributed in the hope that it will be useful, 00007 but WITHOUT ANY WARRANTY; without even the implied warranty of 00008 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00009 GNU General Public License for more details. 00010 00011 You should have received a copy of the GNU General Public License 00012 along with this program. If not, see <http://www.gnu.org/licenses/>. 00013 */ 00014 #ifndef T3_WINDOW_ERRORS_H 00015 #define T3_WINDOW_ERRORS_H 00016 00017 #include "window_api.h" 00018 00025 #ifndef T3_ERR_SUCCESS 00026 00027 #define T3_ERR_SUCCESS 0 00028 00029 /* Use large negative value, such that we don't have to number each and 00030 every value. */ 00031 #define T3_ERR_ERRNO (-128) 00032 00033 #define T3_ERR_EOF (-127) 00034 00035 #define T3_ERR_UNKNOWN (-126) 00036 00037 #define T3_ERR_BAD_ARG (-125) 00038 00039 #define T3_ERR_OUT_OF_MEMORY (-124) 00040 00041 #define T3_ERR_TERMINFODB_NOT_FOUND (-123) 00042 00043 #define T3_ERR_HARDCOPY_TERMINAL (-122) 00044 00045 #define T3_ERR_TERMINAL_TOO_LIMITED (-121) 00046 00047 #define T3_ERR_NO_TERM (-120) 00048 00049 #define T3_ERR_INTERNAL (-119) 00050 00051 #define T3_WARN_MIN (-16) 00052 #endif 00053 00055 /* Each extension of the list of common errors should be done with an ifdef 00056 such that when several different versions of the window error header are 00057 included each symbol will be defined and only defined once. */ 00058 00067 T3_WINDOW_LOCAL const char *t3_window_strerror_base(int error); 00068 00069 #endif