2 * Author: Matthias Braun
4 * Copyright: (c) Universitaet Karlsruhe
5 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
11 * Mark a function as module constructor.
12 * Currently you have to add modules manually in the list in bemodule.c.
13 * However future extensions might allow them to be automatically discovered
14 * when they are marked with BE_REGISTER_MODULE_CONSTRUCTOR
16 #define BE_REGISTER_MODULE_CONSTRUCTOR(func)
19 * Mark a function as module destructor.
21 #define BE_REGISTER_MODULE_DESTRUCTOR(func)
24 * Call all module constructors
26 void be_init_modules(void);
29 * Call all module destructors
31 void be_quit_modules(void);
33 //---------------------------------------------------------------------------
35 #include <libcore/lc_opts.h>
37 typedef struct be_module_list_entry_t be_module_list_entry_t;
39 void be_add_module_to_list(be_module_list_entry_t **list_head, const char *name,
42 void be_add_module_list_opt(lc_opt_entry_t *grp, const char *name,
43 const char *description,
44 be_module_list_entry_t * const * first,