Icinga-core 1.4.0
next gen monitoring
include/neberrors.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  *
00003  * NEBERRORS.H - Event broker errors
00004  *
00005  * Copyright (c) 2003-2009 Ethan Galstad (egalstad@nagios.org)
00006  * Copyright (c) 2009-2011 Icinga Development Team (http://www.icinga.org)
00007  *
00008  * License:
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License version 2 as
00012  * published by the Free Software Foundation.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00022  *
00023  *****************************************************************************/
00024 
00025 #ifndef _NEBERRORS_H
00026 #define _NEBERRORS_H
00027 
00028 
00029 /***** GENERIC DEFINES *****/
00030 
00031 #define NEB_OK                      0
00032 #define NEB_ERROR                   -1
00033 
00034 #define NEB_TRUE                    1
00035 #define NEB_FALSE                   0
00036 
00037 
00038 
00039 /***** GENERIC ERRORS *****/
00040 
00041 #define NEBERROR_NOMEM              100     /* memory could not be allocated */
00042 
00043 
00044 
00045 /***** CALLBACK ERRORS *****/
00046 
00047 #define NEBERROR_NOCALLBACKFUNC     200     /* no callback function was specified */
00048 #define NEBERROR_NOCALLBACKLIST     201     /* callback list not initialized */
00049 #define NEBERROR_CALLBACKBOUNDS     202     /* callback type was out of bounds */
00050 #define NEBERROR_CALLBACKNOTFOUND   203     /* the callback could not be found */
00051 #define NEBERROR_NOMODULEHANDLE     204     /* no module handle specified */
00052 #define NEBERROR_BADMODULEHANDLE    205     /* bad module handle */
00053 #define NEBERROR_CALLBACKOVERRIDE   206     /* module wants to override default Icinga handling of event */
00054 #define NEBERROR_CALLBACKCANCEL     207     /* module wants to cancel callbacks to other modules */
00055 
00056 
00057 
00058 /***** MODULE ERRORS *****/
00059 
00060 #define NEBERROR_NOMODULE           300     /* no module was specified */
00061 
00062 
00063 
00064 /***** MODULE INFO ERRORS *****/
00065 
00066 #define NEBERROR_MODINFOBOUNDS      400     /* module info index was out of bounds */
00067 
00068 
00069 #endif
 All Data Structures Files Functions Variables Typedefs Defines