~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/console/console.cc

Made Listen into a Plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
  int pipe_fds[2];
288
288
 
289
289
public:
290
 
  ListenConsole()
 
290
  ListenConsole(std::string name_arg)
 
291
    : plugin::Listen(name_arg)
291
292
  {
292
293
    pipe_fds[0]= -1;
293
294
  }
328
329
  }
329
330
};
330
331
 
331
 
static ListenConsole listen_obj;
 
332
static ListenConsole *listen_obj= NULL;
332
333
 
333
334
static int init(drizzled::plugin::Registry &registry)
334
335
{
 
336
  listen_obj= new ListenConsole("console");
335
337
  registry.listen.add(listen_obj);
336
338
  return 0;
337
339
}
339
341
static int deinit(drizzled::plugin::Registry &registry)
340
342
{
341
343
  registry.listen.remove(listen_obj);
 
344
  delete listen_obj;
342
345
  return 0;
343
346
}
344
347