~stewart/drizzle/embedded-innodb-rnd-read

« back to all changes in this revision

Viewing changes to plugin/user_function/user_function.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:09:42 UTC
  • mfrom: (1310.1.38)
  • Revision ID: stewart@flamingspork.com-20100330130942-859uivdm20p36sk3
Merged embedded-innodb-write-row into embedded-innodb-rnd-read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
plugin::Create_function<UserFunction> *user_function= NULL;
99
99
 
100
 
static int initialize(drizzled::plugin::Registry &registry)
 
100
static int initialize(drizzled::plugin::Context &context)
101
101
{
102
102
  user_function= new plugin::Create_function<UserFunction>("user");
103
 
  registry.add(user_function);
 
103
  context.add(user_function);
104
104
  return 0;
105
105
}
106
106
 
107
 
static int finalize(drizzled::plugin::Registry &registry)
108
 
{
109
 
   registry.remove(user_function);
110
 
   delete user_function;
111
 
   return 0;
112
 
}
113
 
 
114
107
DRIZZLE_DECLARE_PLUGIN
115
108
{
116
109
  DRIZZLE_VERSION_ID,
120
113
  "USER() and CURRENT_USER()",
121
114
  PLUGIN_LICENSE_GPL,
122
115
  initialize, /* Plugin Init */
123
 
  finalize,   /* Plugin Deinit */
124
116
  NULL,   /* system variables */
125
117
  NULL    /* config options */
126
118
}