source: branches/samhain-2_2-branch/include/sh_modules.h@ 211

Last change on this file since 211 was 1, checked in by katerina, 19 years ago

Initial import

File size: 1.1 KB
Line 
1
2#ifndef SH_MODULE_H
3#define SH_MODULE_H
4
5
6typedef struct rconf
7{
8 char * the_opt;
9 int (*func)(char * opt);
10} sh_rconf;
11
12typedef struct mod_type
13{
14 /* The name of the module */
15 char * name;
16
17 /* Set by samhain to 1 on successful initialization, else 0 */
18 int initval;
19
20 /* The initialization function. Return 0 on success. */
21 int (* mod_init) (void);
22
23 /* The timer function. Return 0 if NOT time to check. */
24 int (* mod_timer) (time_t tcurrent);
25
26 /* The check function. Return 0 on success. */
27 int (* mod_check) (void);
28
29 /* The cleanup function. Return 0 on success. */
30 int (* mod_cleanup) (void);
31
32 /* The preparation for reconfiguration. Return 0 on success. */
33 int (* mod_reconf) (void);
34
35 /* Section header in config file */
36 char * conf_section;
37
38 /* A table of key/handler_function for config file entries */
39 sh_rconf * conf_table;
40
41} sh_mtype;
42
43
44extern sh_mtype modList[];
45
46
47/* #ifndef SH_MODULE_H */
48#endif
Note: See TracBrowser for help on using the repository browser.