Makefile: Add target to run sql-dependant tests
[nagios-reports-module.git] / nagios / neberrors.h
blobf036c7e98f327674a04c6b5ff9608657eaa2cbc5
1 /*****************************************************************************
3 * NEBERRORS.H - Event broker errors
5 * Copyright (c) 2003-2006 Ethan Galstad (nagios@nagios.org)
6 * Last Modified: 12-12-2006
8 * License:
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 *****************************************************************************/
25 #ifndef _NEBERRORS_H
26 #define _NEBERRORS_H
29 /***** GENERIC DEFINES *****/
31 #define NEB_OK 0
32 #define NEB_ERROR -1
34 #define NEB_TRUE 1
35 #define NEB_FALSE 0
39 /***** GENERIC ERRORS *****/
41 #define NEBERROR_NOMEM 100 /* memory could not be allocated */
45 /***** CALLBACK ERRORS *****/
47 #define NEBERROR_NOCALLBACKFUNC 200 /* no callback function was specified */
48 #define NEBERROR_NOCALLBACKLIST 201 /* callback list not initialized */
49 #define NEBERROR_CALLBACKBOUNDS 202 /* callback type was out of bounds */
50 #define NEBERROR_CALLBACKNOTFOUND 203 /* the callback could not be found */
51 #define NEBERROR_NOMODULEHANDLE 204 /* no module handle specified */
52 #define NEBERROR_BADMODULEHANDLE 205 /* bad module handle */
53 #define NEBERROR_CALLBACKOVERRIDE 206 /* module wants to override default Nagios handling of event */
54 #define NEBERROR_CALLBACKCANCEL 207 /* module wants to cancel callbacks to other modules */
58 /***** MODULE ERRORS *****/
60 #define NEBERROR_NOMODULE 300 /* no module was specified */
64 /***** MODULE INFO ERRORS *****/
66 #define NEBERROR_MODINFOBOUNDS 400 /* module info index was out of bounds */
69 #endif