00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _NEBCALLBACKS_H
00027 #define _NEBCALLBACKS_H
00028
00029 #include "config.h"
00030 #include "nebmodules.h"
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036
00037
00038
00039 #define NEBCALLBACK_NUMITEMS 33
00040
00041 #define NEBCALLBACK_RESERVED0 0
00042 #define NEBCALLBACK_RESERVED1 1
00043 #define NEBCALLBACK_RESERVED2 2
00044 #define NEBCALLBACK_RESERVED3 3
00045 #define NEBCALLBACK_RESERVED4 4
00046
00047 #define NEBCALLBACK_RAW_DATA 5
00048 #define NEBCALLBACK_NEB_DATA 6
00049
00050 #define NEBCALLBACK_PROCESS_DATA 7
00051 #define NEBCALLBACK_TIMED_EVENT_DATA 8
00052 #define NEBCALLBACK_LOG_DATA 9
00053 #define NEBCALLBACK_SYSTEM_COMMAND_DATA 10
00054 #define NEBCALLBACK_EVENT_HANDLER_DATA 11
00055 #define NEBCALLBACK_NOTIFICATION_DATA 12
00056 #define NEBCALLBACK_SERVICE_CHECK_DATA 13
00057 #define NEBCALLBACK_HOST_CHECK_DATA 14
00058 #define NEBCALLBACK_COMMENT_DATA 15
00059 #define NEBCALLBACK_DOWNTIME_DATA 16
00060 #define NEBCALLBACK_FLAPPING_DATA 17
00061 #define NEBCALLBACK_PROGRAM_STATUS_DATA 18
00062 #define NEBCALLBACK_HOST_STATUS_DATA 19
00063 #define NEBCALLBACK_SERVICE_STATUS_DATA 20
00064 #define NEBCALLBACK_ADAPTIVE_PROGRAM_DATA 21
00065 #define NEBCALLBACK_ADAPTIVE_HOST_DATA 22
00066 #define NEBCALLBACK_ADAPTIVE_SERVICE_DATA 23
00067 #define NEBCALLBACK_EXTERNAL_COMMAND_DATA 24
00068 #define NEBCALLBACK_AGGREGATED_STATUS_DATA 25
00069 #define NEBCALLBACK_RETENTION_DATA 26
00070 #define NEBCALLBACK_CONTACT_NOTIFICATION_DATA 27
00071 #define NEBCALLBACK_CONTACT_NOTIFICATION_METHOD_DATA 28
00072 #define NEBCALLBACK_ACKNOWLEDGEMENT_DATA 29
00073 #define NEBCALLBACK_STATE_CHANGE_DATA 30
00074 #define NEBCALLBACK_CONTACT_STATUS_DATA 31
00075 #define NEBCALLBACK_ADAPTIVE_CONTACT_DATA 32
00076
00077
00078
00079
00080 int neb_register_callback(int callback_type, void *mod_handle, int priority, int (*callback_func)(int,void *));
00081 int neb_deregister_callback(int callback_type, int (*callback_func)(int,void *));
00082 int neb_deregister_module_callbacks(nebmodule *);
00083
00084 #ifdef __cplusplus
00085 }
00086 #endif
00087
00088
00089 #endif