~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/oldlibdrizzle/oldlibdrizzle.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:
927
927
 
928
928
static ProtocolFactoryOldLibdrizzle *factory= NULL;
929
929
 
930
 
static int init(Plugin_registry &registry)
 
930
static int init(PluginRegistry &registry)
931
931
{
932
932
  factory= new ProtocolFactoryOldLibdrizzle;
933
 
  registry.registerPlugin(factory); 
 
933
  registry.add(factory); 
934
934
  return 0;
935
935
}
936
936
 
937
 
static int deinit(void *)
 
937
static int deinit(PluginRegistry &registry)
938
938
{
939
939
  if (factory)
 
940
  {
 
941
    registry.remove(factory);
940
942
    delete factory;
 
943
  }
941
944
  return 0;
942
945
}
943
946