2 * Author: Matthias Braun
4 * Copyright: (c) Universitaet Karlsruhe
5 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
10 typedef void (*be_module_constructor_func)(void);
13 * Use this macro to register a module constructor. You should put this macro in
14 * a .c file of your module. Compiler magic will make sure that your constructor
15 * function gets called after the main backend structures are initialized.
17 * The module constructor is a convenient place to register commandline options,
18 * or add the module to extension lists.
20 #define BE_REGISTER_MODULE_CONSTRUCTOR(func) \
21 static void __attribute__((constructor)) _be_constructor(void) \
23 be_module_add_constructor(func); \
29 * Warning: internal function, use BE_REGISTER_MODULE_CONSTRUCTOR instead.
31 * This function registers the constructor function of a backend module
33 void be_module_add_constructor(be_module_constructor_func func);
36 * Call all registered constructor functions
38 void be_module_call_constructors(void);