~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/ascii/ascii.cc

  • Committer: Joe Daly
  • Date: 2010-01-06 02:20:42 UTC
  • mto: This revision was merged to the branch mainline in revision 1267.
  • Revision ID: skinny.moey@gmail.com-20100106022042-8ov23wc4aq8f9k7d
rename hash_algorithm to algorithm

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
plugin::Create_function<AsciiFunction> *asciiudf= NULL;
70
70
 
71
 
static int initialize(module::Context &context)
 
71
static int initialize(plugin::Registry &registry)
72
72
{
73
73
  asciiudf= new plugin::Create_function<AsciiFunction>("ascii");
74
 
  context.add(asciiudf);
 
74
  registry.add(asciiudf);
 
75
  return 0;
 
76
}
 
77
 
 
78
static int finalize(plugin::Registry &registry)
 
79
{
 
80
  registry.remove(asciiudf);
 
81
  delete asciiudf;
75
82
  return 0;
76
83
}
77
84
 
84
91
  "Return the ASCII value of a character",
85
92
  PLUGIN_LICENSE_GPL,
86
93
  initialize, /* Plugin Init */
 
94
  finalize,   /* Plugin Deinit */
 
95
  NULL,   /* status variables */
87
96
  NULL,   /* system variables */
88
97
  NULL    /* config options */
89
98
}