~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/plugin.cc

  • Committer: Monty Taylor
  • Date: 2010-03-05 21:10:20 UTC
  • mto: This revision was merged to the branch mainline in revision 1381.
  • Revision ID: mordred@inaugust.com-20100305211020-rr54vcmh709q5nu5
Use the plugin::Context everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
static drizzled::plugin::StorageEngine *schema_plugin= NULL;
31
31
 
32
 
static int init(drizzled::plugin::Registry &registry)
 
32
static int init(drizzled::plugin::Context &context)
33
33
{
34
34
  schema_plugin= new(std::nothrow) Schema();
35
35
 
38
38
    return 1;
39
39
  }
40
40
 
41
 
  registry.add(schema_plugin);
 
41
  context.add(schema_plugin);
42
42
 
43
43
  return 0;
44
44
}
45
45
 
46
 
static int finalize(drizzled::plugin::Registry &registry)
 
46
static int finalize(drizzled::plugin::Context &context)
47
47
{
48
 
  registry.remove(schema_plugin);
 
48
  context.remove(schema_plugin);
49
49
  delete schema_plugin;
50
50
 
51
51
  return 0;