~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_syslog/logging_syslog.cc

  • Committer: Monty Taylor
  • Date: 2009-04-10 22:18:10 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410221810-06j7dfgl1iso0dab
Did the finalizers. Renamed plugin_registry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
 
153
153
static Logging_syslog *handler= NULL;
154
154
 
155
 
static int logging_syslog_plugin_init(Plugin_registry &registry)
 
155
static int logging_syslog_plugin_init(PluginRegistry &registry)
156
156
{
157
157
  syslog_facility= -1;
158
158
  for (int ndx= 0; facilitynames[ndx].c_name; ndx++)
192
192
          LOG_PID, syslog_facility);
193
193
 
194
194
  handler= new Logging_syslog();
195
 
  registry.registerPlugin(handler);
 
195
  registry.add(handler);
196
196
 
197
197
  return 0;
198
198
}
199
199
 
200
 
static int logging_syslog_plugin_deinit(void *)
 
200
static int logging_syslog_plugin_deinit(PluginRegistry &registry)
201
201
{
202
 
 
 
202
  registry.remove(handler);
203
203
  delete handler;
204
204
 
205
205
  return 0;