~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/plugin.cc

  • Committer: Joe Daly
  • Date: 2010-03-08 04:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1380.
  • Revision ID: skinny.moey@gmail.com-20100308042354-7k0jibdqaxkhac7o
scoreboardĀ implementationĀ forĀ statistics

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::module::Context &context)
 
32
static int init(drizzled::plugin::Registry &registry)
33
33
{
34
34
  schema_plugin= new(std::nothrow) Schema();
35
35
 
38
38
    return 1;
39
39
  }
40
40
 
41
 
  context.add(schema_plugin);
 
41
  registry.add(schema_plugin);
 
42
 
 
43
  return 0;
 
44
}
 
45
 
 
46
static int finalize(drizzled::plugin::Registry &registry)
 
47
{
 
48
  registry.remove(schema_plugin);
 
49
  delete schema_plugin;
42
50
 
43
51
  return 0;
44
52
}
52
60
  "This implements the default file based Schema engine.",
53
61
  PLUGIN_LICENSE_GPL,
54
62
  init,     /* Plugin Init */
 
63
  finalize,     /* Plugin Deinit */
55
64
  NULL,               /* system variables */
56
65
  NULL                /* config options   */
57
66
}