~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/crc32/crc32udf.cc

Merge Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
plugin::Create_function<Crc32Function> *crc32udf= NULL;
73
73
 
74
 
static int initialize(plugin::Registry &registry)
 
74
static int initialize(plugin::Context &context)
75
75
{
76
76
  crc32udf= new plugin::Create_function<Crc32Function>("crc32");
77
 
  registry.add(crc32udf);
78
 
  return 0;
79
 
}
80
 
 
81
 
static int finalize(plugin::Registry &registry)  
82
 
{
83
 
  registry.remove(crc32udf);
84
 
  delete crc32udf;
85
 
  return 0;
86
 
}
87
 
 
88
 
DRIZZLE_PLUGIN(initialize, finalize, NULL);
 
77
  context.add(crc32udf);
 
78
  return 0;
 
79
}
 
80
 
 
81
DRIZZLE_PLUGIN(initialize, NULL);