~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/rot13/rot13.cc

  • Committer: Brian Aker
  • Date: 2010-03-17 19:18:40 UTC
  • mto: This revision was merged to the branch mainline in revision 1354.
  • Revision ID: brian@gaz-20100317191840-9ro7fajqp6lhaqjo
Update, we now have all of the ANSI INFORMATION_SCHEMA listed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
};
81
81
 
82
82
using plugin::Create_function;
83
 
using plugin::Context;
 
83
using plugin::Registry;
84
84
typedef Create_function<Function> PluginFunction;
85
85
PluginFunction *rot13_func= NULL;
86
86
 
87
 
static int init(Context &context)
 
87
static int init(Registry &registry)
88
88
{
89
89
  rot13_func= new PluginFunction(rot13::name);
90
 
  context.add(rot13_func);
 
90
  registry.add(rot13_func);
 
91
  return 0;
 
92
}
 
93
 
 
94
static int deinit(Registry &registry)
 
95
{
 
96
  registry.remove(rot13_func);
 
97
  delete rot13_func;
91
98
  return 0;
92
99
}
93
100
 
94
101
} /* namespace rot13 */
95
102
 
96
 
DRIZZLE_PLUGIN(rot13::init, NULL);
 
103
DRIZZLE_PLUGIN(rot13::init, rot13::deinit, NULL);