~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/status_dictionary/dictionary.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:
31
31
static VariablesTool *session_variables;
32
32
 
33
33
 
34
 
static int init(drizzled::plugin::Registry &registry)
 
34
static int init(drizzled::plugin::Context &context)
35
35
{
36
36
  global_statements= new(std::nothrow)StatementsTool(true);
37
37
  global_status= new(std::nothrow)StatusTool(true);
40
40
  global_variables= new(std::nothrow)VariablesTool(true);
41
41
  session_variables= new(std::nothrow)VariablesTool(false);
42
42
 
43
 
  registry.add(global_statements);
44
 
  registry.add(global_status);
45
 
  registry.add(global_variables);
46
 
  registry.add(session_statements);
47
 
  registry.add(session_status);
48
 
  registry.add(session_variables);
 
43
  context.add(global_statements);
 
44
  context.add(global_status);
 
45
  context.add(global_variables);
 
46
  context.add(session_statements);
 
47
  context.add(session_status);
 
48
  context.add(session_variables);
49
49
  
50
50
  return 0;
51
51
}
52
52
 
53
 
static int finalize(drizzled::plugin::Registry &registry)
 
53
static int finalize(drizzled::plugin::Context &context)
54
54
{
55
 
  registry.remove(global_statements);
56
 
  registry.remove(global_status);
57
 
  registry.remove(global_variables);
58
 
  registry.remove(session_statements);
59
 
  registry.remove(session_status);
60
 
  registry.remove(session_variables);
 
55
  context.remove(global_statements);
 
56
  context.remove(global_status);
 
57
  context.remove(global_variables);
 
58
  context.remove(session_statements);
 
59
  context.remove(session_status);
 
60
  context.remove(session_variables);
61
61
 
62
62
  delete global_statements;
63
63
  delete global_status;