BOOT:
{
- reh_register(__PACKAGE__ "::foo", reht_foo_comp, reht_foo_exec);
- reht_foo_var = NULL;
+ {
+ reh_config foo_cfg;
+ foo_cfg.comp = reht_foo_comp;
+ foo_cfg.exec = reht_foo_exec;
+ reh_register(__PACKAGE__ "::foo", &foo_cfg);
+ reht_foo_var = NULL;
+ }
- reh_register(__PACKAGE__ "::bar", reht_bar_comp, reht_bar_exec);
- reht_bar_var = NULL;
+ {
+ reh_config bar_cfg;
+ bar_cfg.comp = reht_bar_comp;
+ bar_cfg.exec = reht_bar_exec;
+ reh_register(__PACKAGE__ "::bar", &bar_cfg);
+ reht_bar_var = NULL;
+ }
- reh_register(__PACKAGE__ "::custom", reht_custom_comp, reht_custom_exec);
- reht_custom_var = NULL;
+ {
+ reh_config custom_cfg;
+ custom_cfg.comp = reht_custom_comp;
+ custom_cfg.exec = reht_custom_exec;
+ reh_register(__PACKAGE__ "::custom", &custom_cfg);
+ reht_custom_var = NULL;
+ }
}
void