~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Monty Taylor
  • Date: 2009-04-10 22:18:10 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410221810-06j7dfgl1iso0dab
Did the finalizers. Renamed plugin_registry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
 
260
260
static Logging_query *handler= NULL;
261
261
 
262
 
static int logging_query_plugin_init(Plugin_registry &registry)
 
262
static int logging_query_plugin_init(PluginRegistry &registry)
263
263
{
264
264
 
265
265
  if (sysvar_logging_query_filename == NULL)
290
290
  }
291
291
 
292
292
  handler= new Logging_query();
293
 
  registry.registerPlugin(handler);
 
293
  registry.add(handler);
294
294
 
295
295
  return 0;
296
296
}
297
297
 
298
 
static int logging_query_plugin_deinit(void *)
 
298
static int logging_query_plugin_deinit(PluginRegistry &registry)
299
299
{
300
300
 
301
301
  if (fd >= 0)
304
304
    fd= -1;
305
305
  }
306
306
 
 
307
  registry.remove(handler);
307
308
  delete handler;
308
309
 
309
310
  return 0;