Introduce old redir program
[lcapit-junk-code.git] / mega-sena / module.h
blob78d81db6088ec426822f3871e88184d5493d5cb6
1 /*
2 * This header file has one of the main data structures used by the
3 * mega-sena program: the struct module.
5 * Each module has to define its own struct module and export it.
6 *
7 * Licensed under the GPLv2.
8 */
9 #ifndef __MODULE_H
10 #define __MODULE_H
12 struct module {
13 const char *mod_name;
14 int (*mod_init)(void);
15 int (*mod_insert)(char *name);
16 int (*mod_lookup)(char *name, unsigned int *h);
17 void (*mod_destroy)(void);
18 void (*mod_stats)(void);
21 #endif /* __MODULE_H */