|
|
@ -280,14 +280,14 @@ bool Plugin::load(color_ostream &con)
|
|
|
|
return false; \
|
|
|
|
return false; \
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
plugin_check_symbols("plugin_name", "name") // allow r3 plugins
|
|
|
|
plugin_check_symbols("plugin_name", "name") // allow r3 plugins
|
|
|
|
plugin_check_symbols("plugin_version", "version") // allow r3 plugins
|
|
|
|
plugin_check_symbols("plugin_version", "version") // allow r3 plugins
|
|
|
|
plugin_check_symbol("plugin_self")
|
|
|
|
plugin_check_symbol("plugin_self")
|
|
|
|
plugin_check_symbol("plugin_init")
|
|
|
|
plugin_check_symbol("plugin_init")
|
|
|
|
plugin_check_symbol("plugin_globals")
|
|
|
|
plugin_check_symbol("plugin_globals")
|
|
|
|
const char ** plug_name =(const char ** ) LookupPlugin(plug, "plugin_name");
|
|
|
|
const char ** plug_name =(const char ** ) LookupPlugin(plug, "plugin_name");
|
|
|
|
if (!plug_name) // allow r3 plugin naming
|
|
|
|
if (!plug_name) // allow r3 plugin naming
|
|
|
|
plug_name = (const char ** )LookupPlugin(plug, "name");
|
|
|
|
plug_name = (const char ** )LookupPlugin(plug, "name");
|
|
|
|
|
|
|
|
|
|
|
|
if (name != *plug_name)
|
|
|
|
if (name != *plug_name)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -296,8 +296,8 @@ bool Plugin::load(color_ostream &con)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const char ** plug_version =(const char ** ) LookupPlugin(plug, "plugin_version");
|
|
|
|
const char ** plug_version =(const char ** ) LookupPlugin(plug, "plugin_version");
|
|
|
|
if (!plug_version) // allow r3 plugin version
|
|
|
|
if (!plug_version) // allow r3 plugin version
|
|
|
|
plug_version =(const char ** ) LookupPlugin(plug, "version");
|
|
|
|
plug_version =(const char ** ) LookupPlugin(plug, "version");
|
|
|
|
|
|
|
|
|
|
|
|
const char ** plug_git_desc_ptr = (const char**) LookupPlugin(plug, "plugin_git_description");
|
|
|
|
const char ** plug_git_desc_ptr = (const char**) LookupPlugin(plug, "plugin_git_description");
|
|
|
|
Plugin **plug_self = (Plugin**)LookupPlugin(plug, "plugin_self");
|
|
|
|
Plugin **plug_self = (Plugin**)LookupPlugin(plug, "plugin_self");
|
|
|
|