~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/sleep/sleep.cc

  • Committer: pawel
  • Date: 2010-03-29 20:16:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1428.
  • Revision ID: pawel@paw-20100329201608-ndqnc736k47uvy3s
changed function-like defines into functions in some files

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
plugin::Create_function<Item_func_sleep> *sleep_udf= NULL;
130
130
 
131
 
static int sleep_plugin_init(drizzled::plugin::Context &context)
 
131
static int sleep_plugin_init(drizzled::plugin::Registry &registry)
132
132
{
133
133
  sleep_udf= new plugin::Create_function<Item_func_sleep>("sleep");
134
 
  context.add(sleep_udf);
135
 
 
136
 
  return 0;
137
 
}
138
 
 
139
 
DRIZZLE_PLUGIN(sleep_plugin_init, NULL);
 
134
  registry.add(sleep_udf);
 
135
 
 
136
  return 0;
 
137
}
 
138
 
 
139
static int sleep_plugin_deinit(drizzled::plugin::Registry &registry)
 
140
{
 
141
  registry.remove(sleep_udf);
 
142
  delete sleep_udf;
 
143
 
 
144
  return 0;
 
145
}
 
146
 
 
147
 
 
148
DRIZZLE_PLUGIN(sleep_plugin_init, sleep_plugin_deinit, NULL);