~stewart/drizzle/embedded-innodb-rnd-read

« back to all changes in this revision

Viewing changes to plugin/registry_dictionary/dictionary.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:09:42 UTC
  • mfrom: (1310.1.38)
  • Revision ID: stewart@flamingspork.com-20100330130942-859uivdm20p36sk3
Merged embedded-innodb-write-row into embedded-innodb-rnd-read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
static ModulesTool *modules;
27
27
static PluginsTool *plugins;
28
28
 
29
 
static int init(drizzled::plugin::Registry &registry)
 
29
static int init(drizzled::plugin::Context &context)
30
30
{
31
31
  modules= new(std::nothrow)ModulesTool;
32
32
  plugins= new(std::nothrow)PluginsTool;
33
33
 
34
 
  registry.add(modules);
35
 
  registry.add(plugins);
 
34
  context.add(modules);
 
35
  context.add(plugins);
36
36
  
37
37
  return 0;
38
38
}
39
39
 
40
 
static int finalize(drizzled::plugin::Registry &registry)
41
 
{
42
 
  registry.remove(modules);
43
 
  registry.remove(plugins);
44
 
  delete modules;
45
 
  delete plugins;
46
 
 
47
 
  return 0;
48
 
}
49
 
 
50
40
DRIZZLE_DECLARE_PLUGIN
51
41
{
52
42
  DRIZZLE_VERSION_ID,
56
46
  "Provides dictionary for plugin registry system.",
57
47
  PLUGIN_LICENSE_GPL,
58
48
  init,     /* Plugin Init */
59
 
  finalize,     /* Plugin Deinit */
60
49
  NULL,               /* system variables */
61
50
  NULL                /* config options   */
62
51
}