~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/rot13/rot13.cc

Merge Monty.

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