~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/test_authz/test_authz.cc

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with 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);