383
383
Finally we initialize everything, aka the dynamic that have yet to initialize.
385
int plugin_init(plugin::Registry ®istry, int *argc, char **argv, int flags)
385
bool plugin_init(plugin::Registry ®istry,
386
int *argc, char **argv,
387
389
plugin::Manifest **builtins;
388
390
plugin::Manifest *manifest;
425
427
plugin_initialize_vars(module);
427
if (! (flags & PLUGIN_INIT_SKIP_INITIALIZATION))
429
431
if (plugin_initialize(registry, module))
431
433
free_root(&tmp_root, MYF(0));
441
bool load_failed= false;
439
442
/* Register all dynamic plugins */
440
if (! (flags & PLUGIN_INIT_SKIP_DYNAMIC_LOADING))
444
plugin_load_list(registry, &tmp_root, argc, argv, opt_plugin_load);
448
string tmp_plugin_list(opt_plugin_load_default);
451
tmp_plugin_list.push_back(',');
452
tmp_plugin_list.append(opt_plugin_add);
454
plugin_load_list(registry, &tmp_root, argc, argv, tmp_plugin_list);
445
load_failed= plugin_load_list(registry, &tmp_root, argc, argv,
450
string tmp_plugin_list(opt_plugin_load_default);
453
tmp_plugin_list.push_back(',');
454
tmp_plugin_list.append(opt_plugin_add);
456
load_failed= plugin_load_list(registry, &tmp_root, argc, argv,
461
free_root(&tmp_root, MYF(0));
458
if (flags & PLUGIN_INIT_SKIP_INITIALIZATION)
460
467
free_root(&tmp_root, MYF(0));