~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.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:
326
326
 
327
327
static Logging_query *handler= NULL;
328
328
 
329
 
static int logging_query_plugin_init(drizzled::plugin::Registry &registry)
 
329
static int logging_query_plugin_init(drizzled::plugin::Context &context)
330
330
{
331
331
  handler= new Logging_query();
332
 
  registry.add(handler);
333
 
 
334
 
  return 0;
335
 
}
336
 
 
337
 
static int logging_query_plugin_deinit(drizzled::plugin::Registry &registry)
338
 
{
339
 
  registry.remove(handler);
340
 
  delete handler;
 
332
  context.add(handler);
341
333
 
342
334
  return 0;
343
335
}
424
416
  N_("Log queries to a CSV file"),
425
417
  PLUGIN_LICENSE_GPL,
426
418
  logging_query_plugin_init,
427
 
  logging_query_plugin_deinit,
428
419
  logging_query_system_variables,
429
420
  NULL
430
421
}