~stewart/drizzle/skeleton-embedded-innodb-engine

« back to all changes in this revision

Viewing changes to plugin/test_authz/test_authz.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:08:38 UTC
  • mfrom: (1283.2.128 staging)
  • Revision ID: stewart@flamingspork.com-20100330130838-3xwqpo06rrqcmxkg
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
Authz *authz= NULL;
65
65
 
66
 
static int init(plugin::Registry &registry)
 
66
static int init(plugin::Context &context)
67
67
{
68
68
  authz= new Authz();
69
 
  registry.add(authz);
70
 
  return 0;
71
 
}
72
 
 
73
 
static int deinit(plugin::Registry &registry)
74
 
{
75
 
  registry.remove(authz);
76
 
  delete authz;
 
69
  context.add(authz);
77
70
  return 0;
78
71
}
79
72
 
80
73
} /* namespace authz */
81
74
 
82
 
DRIZZLE_PLUGIN(authz::init, authz::deinit, NULL);
 
75
DRIZZLE_PLUGIN(authz::init, NULL);