*/
/**
- * @file dl->c
+ * @file src/main/dl.c
* @brief Wrappers around dlopen to manage loading shared objects at runtime.
*
* @copyright 2016 The FreeRADIUS server project
/** Tree of shared objects loaded
*/
rbtree_t *tree;
-
- /** Configuration for module instances
- *
- */
- CONF_SECTION *mod_conf;
-
- /** Configuration for libraries used by modules in the server.
- *
- */
- CONF_SECTION *lib_conf;
} dl_loader_t;
static dl_loader_t *dl;
*/
static int dl_load_func(dl_t const *dl_module, UNUSED void *symbol, UNUSED void *ctx)
{
- CONF_SECTION *cs;
-
- cs = cf_subsection_find(dl->lib_conf, dl_module->name);
-
if (dl_module->common->load && (dl_module->common->load() < 0)) {
ERROR("Initialisation failed for module \"%s\"", dl_module->common->name);
return -1;
if (dl) return 0;
dl = talloc_zero(NULL, dl_loader_t);
-
- /*
- * Cache this for use in the load callback
- */
- dl->lib_conf = cf_section_find_next(root, NULL, "library");
- dl->mod_conf = cf_section_find_next(root, NULL, "modules");
-
dl->tree = rbtree_create(dl, dl_handle_cmp, NULL, 0);
if (!dl->tree) {
ERROR("Failed initialising dl->tree");