~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/console/console.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:10:50 UTC
  • mfrom: (1283.34.4)
  • mto: (1283.37.1)
  • mto: This revision was merged to the branch mainline in revision 1475.
  • Revision ID: stewart@flamingspork.com-20100330131050-b3hwar8bihn1s1qf
Merged embedded-innodb-full-index-read into embedded-innodb-position-rnd-pos.

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
}