Introduce TinyHttp server
[lcapit-junk-code.git] / CEP / C / module.h
blobf1a074adc235c179e759542add74c1c4705193de
1 /*
2 * This header file has one of the main data structures used by the
3 * cep-browser program: the struct module.
5 * Each module has to define its own struct module and export it
6 * so that cep-browser can use the module.
7 *
8 * Licensed under the GPLv2.
9 */
10 #ifndef __MODULE_H
11 #define __MODULE_H
13 struct module {
14 const char *mod_name;
15 void (*mod_init)(int (*compare)(const void *key1, const void *key2),
16 void (*destroy)(void *data),
17 void (*dump)(const void *data));
18 void (*mod_destroy)(void);
19 void (*mod_insert)(void *data);
20 void *(*mod_lookup)(const void *data);
21 void (*mod_dump)(void);
22 size_t (*mod_size)(void);
25 #endif /* __MODULE_H */