neberrors.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  *
00003  * NEBERRORS.H - Event broker errors
00004  *
00005  * Copyright (c) 2003-2005 Ethan Galstad (nagios@nagios.org)
00006  * Last Modified:   11-25-2005
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     /* callback overrides Nagios handling of event */
00054 
00055 
00056 
00057 /***** MODULE ERRORS *****/
00058 
00059 #define NEBERROR_NOMODULE           300     /* no module was specified */
00060 
00061 
00062 
00063 /***** MODULE INFO ERRORS *****/
00064 
00065 #define NEBERROR_MODINFOBOUNDS      400     /* module info index was out of bounds */
00066 
00067 
00068 #endif

Generated on Tue Apr 13 15:15:28 2010 for DNX by  doxygen 1.5.6