~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/errmsg_stderr/errmsg_stderr.cc

  • Committer: Brian Aker
  • Date: 2009-04-13 16:22:40 UTC
  • mfrom: (971.1.78 mordred)
  • Revision ID: brian@gaz-20090413162240-ugi3gvhofmcuglzl
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  }
51
51
};
52
52
 
53
 
static int errmsg_stderr_plugin_init(void *p)
 
53
static Error_message_stderr *handler= NULL;
 
54
static int errmsg_stderr_plugin_init(PluginRegistry &registry)
54
55
{
55
 
  Error_message_handler **handler= static_cast<Error_message_handler **>(p);
56
 
 
57
 
  *handler= new Error_message_stderr();
 
56
  handler= new Error_message_stderr();
 
57
  registry.add(handler);
58
58
 
59
59
  return 0;
60
60
}
61
61
 
62
 
static int errmsg_stderr_plugin_deinit(void *p)
 
62
static int errmsg_stderr_plugin_deinit(PluginRegistry &registry)
63
63
{
64
 
  Error_message_stderr **handler= static_cast<Error_message_stderr **>(p);
65
64
 
66
65
  if (handler)
 
66
  {
 
67
    registry.add(handler);
67
68
    delete handler;
68
 
 
 
69
  }
69
70
  return 0;
70
71
}
71
72
 
72
73
drizzle_declare_plugin(errmsg_stderr)
73
74
{
74
 
  DRIZZLE_ERRMSG_PLUGIN,
75
75
  "errmsg_stderr",
76
76
  "0.1",
77
77
  "Mark Atwood <mark@fallenpegasus.com>",