On 2020-02-22 18:34, Dimitry Sibiryakov wrote:
22.02.2020 15:28, Alex Peshkoff via Firebird-devel wrote:
At least I see no reasons for it not to work.
These lines of code make me unsure:
if (!current)
{
// not good time to call this function - ignore request
gds__log("Unexpected call to register plugin %s, type %d -
ignored\n", defaultName, interfaceType);
return;
}
Do not worry - look 15 lines before it (in ctor of PluginManager):
builtin = FB_NEW PluginModule(NULL, "<builtin>");
builtin->addRef(); // Will never be unloaded
current = builtin;
That makes it possible to register builtin (or virtual like you called
them) plugins with special "builtin" module which is never unloaded.
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel