~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/console/console.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
 
311
311
static ListenConsole *listen_obj= NULL;
312
312
 
313
 
static int init(drizzled::plugin::Registry &registry)
 
313
static int init(drizzled::plugin::Context &context)
314
314
{
315
315
  listen_obj= new ListenConsole("console");
316
 
  registry.add(listen_obj);
317
 
  return 0;
318
 
}
319
 
 
320
 
static int deinit(drizzled::plugin::Registry &registry)
321
 
{
322
 
  registry.remove(listen_obj);
323
 
  delete listen_obj;
 
316
  context.add(listen_obj);
324
317
  return 0;
325
318
}
326
319
 
354
347
  "Console Client",
355
348
  PLUGIN_LICENSE_BSD,
356
349
  init,   /* Plugin Init */
357
 
  deinit, /* Plugin Deinit */
358
350
  vars,   /* system variables */
359
351
  NULL    /* config options */
360
352
}