~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/md5/md5.cc

Merge Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
 
95
95
plugin::Create_function<Md5Function> *md5udf= NULL;
96
96
 
97
 
static int initialize(plugin::Registry &registry)
 
97
static int initialize(plugin::Context &context)
98
98
{
99
99
  md5udf= new plugin::Create_function<Md5Function>("md5");
100
 
  registry.add(md5udf);
101
 
  return 0;
102
 
}
103
 
 
104
 
static int finalize(plugin::Registry &registry)
105
 
{
106
 
  registry.remove(md5udf);
107
 
  delete md5udf;
 
100
  context.add(md5udf);
108
101
  return 0;
109
102
}
110
103
 
117
110
  "UDF for computing md5sum",
118
111
  PLUGIN_LICENSE_GPL,
119
112
  initialize, /* Plugin Init */
120
 
  finalize,   /* Plugin Deinit */
121
113
  NULL,   /* system variables */
122
114
  NULL    /* config options */
123
115
}