~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 21:13:45 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410211345-8ti3nt2i2otjrjly
New-style plugin registration now works.
New-style plugin re-registration on the way.

Show diffs side-by-side

added added

removed removed

Lines of Context:
925
925
  return session->checkUser(passwd, passwd_len, l_db);
926
926
}
927
927
 
928
 
static int init(void *p)
 
928
static ProtocolFactoryOldLibdrizzle *factory= NULL;
 
929
 
 
930
static int init(Plugin_registry &registry)
929
931
{
930
 
  ProtocolFactory **factory= static_cast<ProtocolFactory **>(p);
931
 
  *factory= new ProtocolFactoryOldLibdrizzle;
 
932
  factory= new ProtocolFactoryOldLibdrizzle;
 
933
  registry.registerPlugin(factory); 
932
934
  return 0;
933
935
}
934
936
 
935
 
static int deinit(void *p)
 
937
static int deinit(void *)
936
938
{
937
 
  ProtocolFactoryOldLibdrizzle *factory= static_cast<ProtocolFactoryOldLibdrizzle *>(p);
938
 
  delete factory;
 
939
  if (factory)
 
940
    delete factory;
939
941
  return 0;
940
942
}
941
943