~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/console/console.cc

  • Committer: pawel
  • Date: 2010-03-29 20:16:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1428.
  • Revision ID: pawel@paw-20100329201608-ndqnc736k47uvy3s
changed function-like defines into functions in some files

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::Context &context)
 
313
static int init(drizzled::plugin::Registry &registry)
314
314
{
315
315
  listen_obj= new ListenConsole("console");
316
 
  context.add(listen_obj);
 
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;
317
324
  return 0;
318
325
}
319
326
 
347
354
  "Console Client",
348
355
  PLUGIN_LICENSE_BSD,
349
356
  init,   /* Plugin Init */
 
357
  deinit, /* Plugin Deinit */
350
358
  vars,   /* system variables */
351
359
  NULL    /* config options */
352
360
}