~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/reverse_function/reverse_function.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

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
}