~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/user_function/user_function.cc

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with trunk

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
}