~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

  • Committer: Monty Taylor
  • Date: 2009-04-10 18:17:59 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410181759-wr58on1xxc9lwzut
Made plugin registration go through Plugin_registry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <drizzled/registry.h>
29
29
#include <drizzled/unireg.h>
30
30
#include <drizzled/data_home.h>
 
31
#include <drizzled/plugin_registry.h>
31
32
#include <string>
32
33
 
33
34
#include CSTDINT_H
36
37
 
37
38
drizzled::Registry<StorageEngine *> all_engines;
38
39
 
39
 
static void add_storage_engine(StorageEngine *engine)
 
40
void add_storage_engine(StorageEngine *engine)
40
41
{
41
42
  all_engines.add(engine);
42
43
}
43
44
 
44
 
static void remove_storage_engine(StorageEngine *engine)
 
45
void remove_storage_engine(StorageEngine *engine)
45
46
{
46
47
  all_engines.remove(engine);
47
48
}
710
711
    }
711
712
  }
712
713
 
 
714
  Plugin_registry &registry= Plugin_registry::get_plugin_registry();
713
715
  if (engine != NULL)
714
 
    add_storage_engine(engine);
 
716
    registry.registerPlugin(engine);
715
717
 
716
718
  plugin->data= engine;
717
719
  plugin->isInited= true;