~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/version/versionudf.cc

  • Committer: Brian Aker
  • Date: 2010-02-14 01:56:51 UTC
  • mto: (1273.16.5 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: brian@gaz-20100214015651-ror9j0xu7dccz0ct
Two fixes for "make dist"

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
String *VersionFunction::val_str(String *str)
48
48
{
49
 
  str->set(::drizzled::version().c_str(), ::drizzled::version().size(),
 
49
  str->set(version().c_str(), version().size(),
50
50
           system_charset_info);
51
51
  return str;
52
52
}
53
53
 
54
54
plugin::Create_function<VersionFunction> *versionudf= NULL;
55
55
 
56
 
static int initialize(module::Context &context)
 
56
static int initialize(plugin::Registry &registry)
57
57
{
58
58
  versionudf= new plugin::Create_function<VersionFunction>("version");
59
 
  context.add(versionudf);
 
59
  registry.add(versionudf);
60
60
  return 0;
61
61
}
62
62
 
63
 
DRIZZLE_PLUGIN(initialize, NULL, NULL);
 
63
static int finalize(plugin::Registry &registry)
 
64
{
 
65
   registry.remove(versionudf);
 
66
   delete versionudf;
 
67
   return 0;
 
68
}
 
69
 
 
70
DRIZZLE_PLUGIN(initialize, finalize, NULL, NULL);