~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/crc32/crc32udf.cc

  • Committer: Eric Day
  • Date: 2010-03-25 19:28:37 UTC
  • mfrom: (1405 staging)
  • mto: This revision was merged to the branch mainline in revision 1409.
  • Revision ID: eday@oddments.org-20100325192837-4exmacbrywjovsqp
Merged trunk, rsolved conflicts.

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);