🌈 style(module manager): rename plugin to module
This commit is contained in:
@@ -50,7 +50,7 @@ struct module_specific *module_specs_load(toml_table_t* conf, int *mod_num)
|
||||
}
|
||||
void* handle = dlopen(path, RTLD_NOW|RTLD_LAZY|RTLD_GLOBAL);
|
||||
if (!handle) {
|
||||
fprintf(stderr, "Error loading plugin %s: %s\n", path, dlerror());
|
||||
fprintf(stderr, "Error loading module %s: %s\n", path, dlerror());
|
||||
goto MODULE_SPEC_LOAD_ERROR;
|
||||
}
|
||||
|
||||
@@ -126,29 +126,6 @@ void stellar_module_manager_free(struct stellar_module_manager *mod_mgr)
|
||||
}
|
||||
utarray_free(mod_mgr->schema.module_specs_array);
|
||||
}
|
||||
#if 0
|
||||
if(plug_mgr->stellar_mq_schema_array)
|
||||
{
|
||||
for(unsigned int i = 0; i < utarray_len(plug_mgr->stellar_mq_schema_array); i++)
|
||||
{
|
||||
stellar_mq_destroy_topic( plug_mgr->st, i);
|
||||
}
|
||||
utarray_free(plug_mgr->stellar_mq_schema_array);
|
||||
}
|
||||
|
||||
//if(plug_mgr->stellar_exdata_schema_array)utarray_free(plug_mgr->stellar_exdata_schema_array);
|
||||
if(plug_mgr->registered_polling_plugin_array)utarray_free(plug_mgr->registered_polling_plugin_array);
|
||||
if(plug_mgr->registered_packet_plugin_array)
|
||||
{
|
||||
struct registered_plugin_schema *s = NULL;
|
||||
while ((s = (struct registered_plugin_schema *)utarray_next(plug_mgr->registered_packet_plugin_array, s)))
|
||||
{
|
||||
if(s->registed_mq_subscriber_info)utarray_free(s->registed_mq_subscriber_info);
|
||||
}
|
||||
utarray_free(plug_mgr->registered_packet_plugin_array);
|
||||
}
|
||||
#endif
|
||||
|
||||
FREE(mod_mgr);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user