~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/test_authz/test_authz.cc

  • Committer: pawel
  • Date: 2010-03-29 20:16:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1428.
  • Revision ID: pawel@paw-20100329201608-ndqnc736k47uvy3s
changed function-like defines into functions in some files

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::Context &context)
 
66
static int init(plugin::Registry &registry)
67
67
{
68
68
  authz= new Authz();
69
 
  context.add(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;
70
77
  return 0;
71
78
}
72
79
 
73
80
} /* namespace authz */
74
81
 
75
 
DRIZZLE_PLUGIN(authz::init, NULL);
 
82
DRIZZLE_PLUGIN(authz::init, authz::deinit, NULL);