~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_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:
37
37
static ShowTableStatus *table_status;
38
38
 
39
39
 
40
 
static int init(drizzled::plugin::Registry &registry)
 
40
static int init(drizzled::plugin::Context &context)
41
41
{
42
42
  columns= new(std::nothrow)ColumnsTool;
43
43
  index_parts= new(std::nothrow)IndexPartsTool;
52
52
  table_status= new(std::nothrow)ShowTableStatus;
53
53
  tables= new(std::nothrow)TablesTool;
54
54
 
55
 
  registry.add(columns);
56
 
  registry.add(index_parts);
57
 
  registry.add(indexes);
58
 
  registry.add(local_tables);
59
 
  registry.add(referential_constraints);
60
 
  registry.add(schema_names);
61
 
  registry.add(schemas);
62
 
  registry.add(show_indexes);
63
 
  registry.add(show_columns);
64
 
  registry.add(table_constraints);
65
 
  registry.add(table_status);
66
 
  registry.add(tables);
 
55
  context.add(columns);
 
56
  context.add(index_parts);
 
57
  context.add(indexes);
 
58
  context.add(local_tables);
 
59
  context.add(referential_constraints);
 
60
  context.add(schema_names);
 
61
  context.add(schemas);
 
62
  context.add(show_indexes);
 
63
  context.add(show_columns);
 
64
  context.add(table_constraints);
 
65
  context.add(table_status);
 
66
  context.add(tables);
67
67
  
68
68
  return 0;
69
69
}
70
70
 
71
 
static int finalize(drizzled::plugin::Registry &registry)
 
71
static int finalize(drizzled::plugin::Context &context)
72
72
{
73
 
  registry.remove(columns);
74
 
  registry.remove(index_parts);
75
 
  registry.remove(indexes);
76
 
  registry.remove(local_tables);
77
 
  registry.remove(referential_constraints);
78
 
  registry.remove(schema_names);
79
 
  registry.remove(schemas);
80
 
  registry.remove(show_indexes);
81
 
  registry.remove(show_columns);
82
 
  registry.remove(table_constraints);
83
 
  registry.remove(table_status);
84
 
  registry.remove(tables);
 
73
  context.remove(columns);
 
74
  context.remove(index_parts);
 
75
  context.remove(indexes);
 
76
  context.remove(local_tables);
 
77
  context.remove(referential_constraints);
 
78
  context.remove(schema_names);
 
79
  context.remove(schemas);
 
80
  context.remove(show_indexes);
 
81
  context.remove(show_columns);
 
82
  context.remove(table_constraints);
 
83
  context.remove(table_status);
 
84
  context.remove(tables);
85
85
  delete columns;
86
86
  delete index_parts;
87
87
  delete indexes;