~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/reverse_function/reverse_function.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:10:50 UTC
  • mfrom: (1283.34.4)
  • mto: (1283.37.1)
  • mto: This revision was merged to the branch mainline in revision 1475.
  • Revision ID: stewart@flamingspork.com-20100330131050-b3hwar8bihn1s1qf
Merged embedded-innodb-full-index-read into embedded-innodb-position-rnd-pos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
plugin::Create_function<ReverseFunction> *reverse_function= NULL;
95
95
 
96
 
static int initialize(drizzled::plugin::Registry &registry)
 
96
static int initialize(drizzled::plugin::Context &context)
97
97
{
98
98
  reverse_function= new plugin::Create_function<ReverseFunction>("reverse");
99
 
  registry.add(reverse_function);
 
99
  context.add(reverse_function);
100
100
  return 0;
101
101
}
102
102
 
103
 
static int finalize(drizzled::plugin::Registry &registry)
104
 
{
105
 
   registry.remove(reverse_function);
106
 
   delete reverse_function;
107
 
   return 0;
108
 
}
109
 
 
110
103
DRIZZLE_DECLARE_PLUGIN
111
104
{
112
105
  DRIZZLE_VERSION_ID,
116
109
  "reverses a string",
117
110
  PLUGIN_LICENSE_GPL,
118
111
  initialize, /* Plugin Init */
119
 
  finalize,   /* Plugin Deinit */
120
112
  NULL,   /* system variables */
121
113
  NULL    /* config options */
122
114
}