~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/crc32/crc32udf.cc

  • Committer: Brian Aker
  • Date: 2009-04-13 16:22:40 UTC
  • mfrom: (971.1.78 mordred)
  • Revision ID: brian@gaz-20090413162240-ugi3gvhofmcuglzl
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
Create_function<Item_func_crc32> crc32udf(string("crc32"));
53
53
 
54
 
static int crc32udf_plugin_init(void *p)
 
54
static int crc32udf_plugin_init(PluginRegistry &registry)
55
55
{
56
 
  Function_builder **f = static_cast<Function_builder**>(p);
57
 
 
58
 
  *f= &crc32udf;
 
56
  registry.add(&crc32udf);
59
57
 
60
58
  return 0;
61
59
}
62
60
 
63
61
drizzle_declare_plugin(crc32)
64
62
{
65
 
  DRIZZLE_UDF_PLUGIN,
66
63
  "crc32",
67
64
  "1.0",
68
65
  "Stewart Smith",