Adding plugin API number into versioned function name, and removing

old runtime API version check.
This commit is contained in:
Robin Sommer 2017-07-21 13:23:37 -07:00
parent 8ae30d8aac
commit 78f8ff432f
6 changed files with 10 additions and 35 deletions

View file

@ -243,10 +243,6 @@ bool Manager::ActivateDynamicPluginInternal(const std::string& name, bool ok_if_
plugins_by_path.insert(std::make_pair(normalize_path(dir), current_plugin));
if ( current_plugin->APIVersion() != BRO_PLUGIN_API_VERSION )
reporter->FatalError("plugin's API version does not match Bro (expected %d, got %d in %s)",
BRO_PLUGIN_API_VERSION, current_plugin->APIVersion(), path);
// We execute the pre-script initialization here; this in
// fact could be *during* script initialization if we got
// triggered via @load-plugin.