~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/registry_dictionary/dictionary.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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::module::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
}