nebcallbacks.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  *
00003  * NEBCALLBACKS.H - Include file for event broker modules
00004  *
00005  * Copyright (c) 2002-2006 Ethan Galstad (nagios@nagios.org)
00006  * Last Modified:   10-09-2006
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 _NEBCALLBACKS_H
00026 #define _NEBCALLBACKS_H
00027 
00028 #include "config.h"
00029 #include "nebmodules.h"
00030 
00031 #ifdef __cplusplus
00032   extern "C" {
00033 #endif
00034 
00035 
00036 /***** CALLBACK TYPES *****/
00037 
00038 #define NEBCALLBACK_NUMITEMS                          31    /* total number of callback types we have */
00039 
00040 #define NEBCALLBACK_RESERVED0                         0     /* reserved for future use */
00041 #define NEBCALLBACK_RESERVED1                         1
00042 #define NEBCALLBACK_RESERVED2                         2
00043 #define NEBCALLBACK_RESERVED3                         3
00044 #define NEBCALLBACK_RESERVED4                         4
00045 
00046 #define NEBCALLBACK_RAW_DATA                          5
00047 #define NEBCALLBACK_NEB_DATA                          6
00048 
00049 #define NEBCALLBACK_PROCESS_DATA                      7
00050 #define NEBCALLBACK_TIMED_EVENT_DATA                  8
00051 #define NEBCALLBACK_LOG_DATA                          9
00052 #define NEBCALLBACK_SYSTEM_COMMAND_DATA               10
00053 #define NEBCALLBACK_EVENT_HANDLER_DATA                11
00054 #define NEBCALLBACK_NOTIFICATION_DATA                 12
00055 #define NEBCALLBACK_SERVICE_CHECK_DATA                13
00056 #define NEBCALLBACK_HOST_CHECK_DATA                   14
00057 #define NEBCALLBACK_COMMENT_DATA                      15
00058 #define NEBCALLBACK_DOWNTIME_DATA                     16
00059 #define NEBCALLBACK_FLAPPING_DATA                     17
00060 #define NEBCALLBACK_PROGRAM_STATUS_DATA               18
00061 #define NEBCALLBACK_HOST_STATUS_DATA                  19
00062 #define NEBCALLBACK_SERVICE_STATUS_DATA               20
00063 #define NEBCALLBACK_ADAPTIVE_PROGRAM_DATA             21
00064 #define NEBCALLBACK_ADAPTIVE_HOST_DATA                22
00065 #define NEBCALLBACK_ADAPTIVE_SERVICE_DATA             23
00066 #define NEBCALLBACK_EXTERNAL_COMMAND_DATA             24
00067 #define NEBCALLBACK_AGGREGATED_STATUS_DATA            25
00068 #define NEBCALLBACK_RETENTION_DATA                    26
00069 #define NEBCALLBACK_CONTACT_NOTIFICATION_DATA         27
00070 #define NEBCALLBACK_CONTACT_NOTIFICATION_METHOD_DATA  28
00071 #define NEBCALLBACK_ACKNOWLEDGEMENT_DATA              29
00072 #define NEBCALLBACK_STATE_CHANGE_DATA                 30
00073 
00074 
00075 /***** CALLBACK FUNCTIONS *****/
00076 
00077 int neb_register_callback(int, void *, int, int (*callback_func)(int,void *));
00078 int neb_deregister_callback(int, int (*callback_func)(int,void *));
00079 int neb_deregister_module_callbacks(nebmodule *);
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 
00085 
00086 #endif

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