~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_schema_proto/show_schema_proto.cc

  • Committer: Eric Day
  • Date: 2010-03-25 19:28:37 UTC
  • mfrom: (1405 staging)
  • mto: This revision was merged to the branch mainline in revision 1409.
  • Revision ID: eday@oddments.org-20100325192837-4exmacbrywjovsqp
Merged trunk, rsolved conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
 
106
106
plugin::Create_function<ShowSchemaProtoFunction> *show_schema_proto_func= NULL;
107
107
 
108
 
static int initialize(plugin::Registry &registry)
 
108
static int initialize(plugin::Context &context)
109
109
{
110
110
  show_schema_proto_func= new plugin::Create_function<ShowSchemaProtoFunction>("show_schema_proto");
111
 
  registry.add(show_schema_proto_func);
112
 
  return 0;
113
 
}
114
 
 
115
 
static int finalize(plugin::Registry &registry)
116
 
{
117
 
  registry.remove(show_schema_proto_func);
118
 
  delete show_schema_proto_func;
 
111
  context.add(show_schema_proto_func);
119
112
  return 0;
120
113
}
121
114
 
128
121
  "Shows text representation of schema definition proto",
129
122
  PLUGIN_LICENSE_GPL,
130
123
  initialize, /* Plugin Init */
131
 
  finalize,   /* Plugin Deinit */
132
124
  NULL,   /* system variables */
133
125
  NULL    /* config options */
134
126
}