~drizzle-trunk/drizzle/development

« back to all changes in this revision

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