void discover_plugin (const Plugin *PluginPtr) { HashTableHandleIterator it; for ( PluginStruct *current = pluginTable.get_first (it); current; current = pluginTable.get_next (it)) { if (current->plugin) { current->plugin->discover_plugin (PluginDiscoverAdd, PluginPtr); } } }
void discover_all_plugins (Plugin *pluginPtr) { if (pluginPtr) { HashTableHandleIterator it; for ( PluginStruct *current = interfaceTable.get_first (it); current; current = interfaceTable.get_next (it)) { pluginPtr->discover_plugin (PluginDiscoverAdd, current->plugin); } for ( const Plugin *ExPtr = externTable.get_first (it); ExPtr; ExPtr = externTable.get_next (it)) { pluginPtr->discover_plugin (PluginDiscoverAdd, ExPtr); } } }