~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/connection_id/connection_id.cc

  • Committer: Lee Bieber
  • Date: 2010-01-30 23:42:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1282.
  • Revision ID: lbieber@lee-biebers-macbook-pro.local-20100130234202-sxmqfteqwiq15ptg
add target to japanese tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
plugin::Create_function<ConnectionIdFunction> *connection_idudf= NULL;
70
70
 
71
 
static int initialize(plugin::Context &context)
 
71
static int initialize(plugin::Registry &registry)
72
72
{
73
73
  connection_idudf=
74
74
    new plugin::Create_function<ConnectionIdFunction>("connection_id");
75
 
  context.add(connection_idudf);
 
75
  registry.add(connection_idudf);
76
76
  return 0;
77
77
}
78
78
 
 
79
static int finalize(plugin::Registry &registry)
 
80
{
 
81
   registry.remove(connection_idudf);
 
82
   delete connection_idudf;
 
83
   return 0;
 
84
}
 
85
 
79
86
DRIZZLE_DECLARE_PLUGIN
80
87
{
81
88
  DRIZZLE_VERSION_ID,
85
92
  "Return the current connection_id",
86
93
  PLUGIN_LICENSE_GPL,
87
94
  initialize, /* Plugin Init */
 
95
  finalize,   /* Plugin Deinit */
 
96
  NULL,   /* status variables */
88
97
  NULL,   /* system variables */
89
98
  NULL    /* config options */
90
99
}