import: Fix progress output ETA when skipping files
[nagios-reports-module.git] / nagios / nebmods.h
blobf6e7743ef8e35787c9000567a3c65e7bddb8c716
1 /*****************************************************************************
3 * NEBMODS.H - Include file for event broker modules
5 * Copyright (c) 2002-2005 Ethan Galstad (nagios@nagios.org)
6 * Last Modified: 11-25-2005
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 _NEBMODS_H
26 #define _NEBMODS_H
28 #include "config.h"
29 #include "nebcallbacks.h"
30 #include "nebmodules.h"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
37 /***** MODULE STRUCTURES *****/
39 /* NEB module callback list struct */
40 typedef struct nebcallback_struct{
41 void *callback_func;
42 void *module_handle;
43 int priority;
44 struct nebcallback_struct *next;
45 }nebcallback;
49 /***** MODULE FUNCTIONS *****/
51 int neb_init_modules(void);
52 int neb_deinit_modules(void);
53 int neb_load_all_modules(void);
54 int neb_load_module(nebmodule *);
55 int neb_free_module_list(void);
56 int neb_unload_all_modules(int,int);
57 int neb_unload_module(nebmodule *,int,int);
58 int neb_add_module(char *,char *,int);
61 /***** CALLBACK FUNCTIONS *****/
62 int neb_init_callback_list(void);
63 int neb_free_callback_list(void);
64 int neb_make_callbacks(int,void *);
66 #ifdef __cplusplus
68 #endif
70 #endif