~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.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:
290
290
 
291
291
static LoggingGearman *handler= NULL;
292
292
 
293
 
static int logging_gearman_plugin_init(plugin::Registry &registry)
 
293
static int logging_gearman_plugin_init(plugin::Context &context)
294
294
{
295
295
  handler= new LoggingGearman();
296
 
  registry.add(handler);
297
 
 
298
 
  return 0;
299
 
}
300
 
 
301
 
static int logging_gearman_plugin_deinit(plugin::Registry &registry)
302
 
{
303
 
  registry.remove(handler);
304
 
  delete handler;
 
296
  context.add(handler);
305
297
 
306
298
  return 0;
307
299
}
349
341
    N_("Log queries to a Gearman server"),
350
342
    PLUGIN_LICENSE_GPL,
351
343
    logging_gearman_plugin_init,
352
 
    logging_gearman_plugin_deinit,
353
344
    logging_gearman_system_variables,
354
345
    NULL
355
346
}