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

« back to all changes in this revision

Viewing changes to plugin/session_dictionary/dictionary.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-11-12 12:26:01 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101112122601-myppfj3tfmlkccuq
Tags: upstream-2010.11.03
ImportĀ upstreamĀ versionĀ 2010.11.03

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
static ProcesslistTool *processlist;
27
27
 
28
 
static int init(drizzled::plugin::Registry &registry)
 
28
static int init(drizzled::module::Context &context)
29
29
{
30
30
  processlist= new(std::nothrow)ProcesslistTool;
31
 
  registry.add(processlist);
 
31
  context.add(processlist);
32
32
  
33
33
  return 0;
34
34
}
35
35
 
36
 
static int finalize(drizzled::plugin::Registry &registry)
37
 
{
38
 
  registry.remove(processlist);
39
 
  delete processlist;
40
 
 
41
 
  return 0;
42
 
}
43
 
 
44
36
DRIZZLE_DECLARE_PLUGIN
45
37
{
46
38
  DRIZZLE_VERSION_ID,
50
42
  "Dictionary for session information, aka proccesslist, etc.",
51
43
  PLUGIN_LICENSE_GPL,
52
44
  init,
53
 
  finalize,
54
45
  NULL,
55
46
  NULL
56
47
}